Hallo Zusammen,
nun habe ich die Lösung gefunden.
Code:
##
# Umleitung der "spezial Domains"
##
RewriteCond %{HTTP_HOST} ^www\.domain2\.de$
RewriteRule (.*) https://domain.de/fernwartung.html [R=301,L]
RewriteCond %{HTTP_HOST} ^\.domain2\.de$
RewriteRule (.*) https://domain.de/fernwartung.html [R=301,L]
##
# Uncomment the following lines to add "www." to the domain:
#
# RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
# RewriteRule (.*) http://www.example.com/$1 [R=301,L]
#
# Uncomment the following lines to remove "www." from the domain:
#
RewriteCond %{HTTP_HOST} ^www\.domain\.de$ [NC]
RewriteRule (.*) https://domain.de/$1 [R=301,L]
#
# Make sure to replace "example.com" with your domain name.
##
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://domain.de/$1 [R,L]
Lesezeichen