Hallo, ich brauche bitte Hilfe. Ausgangssituation: Unsere Webseite lief unter der alten DomainA.de - durch Umfirmierung haben wir nun zusätzliche die DomainB.de und ich hab die Webseite überarbeitet. Dabei haben wir auch die Seitenstruktur verändert. Bisher hatten wir z.B. https://www.domaina.de/kontakt-anfahrt.html und nun haben wir https://domainb.de/anfahrt
Die grundlegende Umleitung von http://www.DomainA.de auf DomainB.de klappt - aber ich schaffe es nicht, die Unterseiten wie z.B. https://www.domaina.de/kontakt-anfahrt.html auf https://domainb.de/anfahrt umzuleiten. Das sind nur sechs Seiten, das wäre also kein Aufwand dafür händisch was zu erstellen, aber es klappt nicht. Rufe ich https://www.domaina.de/kontakt-anfahrt.html auf, lande ich auf https://domainb.de/kontakt-anfahrt.html
##
# @package Joomla
# @copyright (C) 2005 Open Source Matters, Inc. <https://www.joomla.org>
# @license GNU General Public License version 2 or later; see LICENSE.txt
##
##
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
#
# The line 'Options +FollowSymLinks' may cause problems with some server configurations.
# It is required for the use of Apache mod_rewrite, but it may have already been set by
# your server administrator in a way that disallows changing it in this .htaccess file.
# If using it causes your site to produce an error, comment it out (add # to the
# beginning of the line), reload your site in your browser and test your sef urls. If
# they work, then it has been set by your server administrator and you do not need to
# set it here.
##
RewriteEngine On
Redirect 301 /kontakt-anfahrt.html/ https://domainb.de/kontakt
RewriteEngine On
RewriteCond %{HTTP_HOST} (www\.)?domaina.de
RewriteRule (.*) http://www.domainb.de/$1 [R=301,L]
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Alles anzeigen
Hat jemand eine Idee?