Hi guys,
I'm completely new to apache and trying to 301 redirect a domain to another domain. I used .htaccess with
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.new-domain.com/$1 [R=301,L]
It created an infinite redirect loop. Then I tried if I could do it page by page:
redirect 301 /page.html http://www.newdomain.com/page.html
The problem seems to be that
www.olddomain.com and
www.newdomain.com point to the same directory on the server. Request to old domain redirects to new domain, but then reads the same .htaccess file again and and again... Doh
Could anybody help, is there a way around this?
Thanks a million !