“Im busy for a while now solving the following issue:
I have a http://domain.com with an SSL certificate on it.
I want to redirect this domain.com to my dutch domain.nl.
But: I also want to avoid/exclude the from redirecting ( I need SSL for Facebook Apps)
OR
redirect domain.com except
Sofar i have added this to my htacces file:
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} ^domain\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.domain\.com$
RewriteRule ^(.*)$ http://domain.nl/$1 [R=301,L]
Thanks to all for giving it a helping hand.
Greetings
Michel
Clear your browser cache and restart the browser.
Enable mod_rewrite and .htaccess through
httpd.confand then put this code in your.htaccessunderDOCUMENT_ROOTdirectory:Once you make sure it’s working fine change 302 to 301 in above rule.