Forum Moderators: phranque
Redirect [olddomain.com...] to [newdomain.com...]
We currently have an old domain and a new domain that serve off the same folder. I'm looking for the old domain to redirect to the new domain, but keep the /yxz/acb.html or whatever file/folder it may be.
Any help would be greatly appreciated,
Cheers
RewriteEngine On
RewriteRule (.*) http://www.example.com/$1 [R=301,L] There's a couple of thousand prior examples in the forum. It's well worth reading old threads. Many explain why something is done a particular way too.
Upon using the above code, i received the following error when trying to access the page, through both the olddomain and the newdomain addresses:
"Too many redirects occurred trying to open “http://www.newdomain.com/”
I'll have a dig around some old threads but would appreciate any help in the mean time.
Thanks