Forum Moderators: phranque
I came across a webpage that said to do this:
RewriteRule .* [insertURLdirectingto.com...] [R=301,L]
But that didn't work. The fwd'd domain showed "the page cannot be displayed" and when trying to access my main domain it got locked in some sort of a "infinite loop" flashing and the page never loaded.
The NameServers on the domain I want to fwd (the one I'm testing) are set to that of my main domain. I don't even know if that is the correct thing to do.
Thank you.
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST}!^www\.maindomain\.com
RewriteRule (.*) [maindomain.com...] [R=301,L]