Right now I'm changing my Host. The .com domain is still hosted by the old one. My .de & .eu domains are allready transferred to the new one. All domains should point to the .com for some time.
That's how I'ld like to set up...
http://www.example.de
http://example.de
http://www.example.eu
http://example.eu
--> http://example.com
https://www.example.de
https://example.de
https://www.example.eu
https://example.eu
--> https://www.example.com
(My ssl certificate is for www.example.com)
The http redirect works fine but I've problems to set up a redirect for the https.
My .htaccess:
- Code: Select all
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC]
RewriteRule .* http://example.com/? [R=301,L]
#SSL
RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC]
RewriteCond %{SERVER_PORT} !^443$
RewriteRule .* https://www.example.com/? [R=301,L]
Any Ideas?
Michael