Redirect Domain name to specific page
Permalink
I have to redirect a domain name to a specific page on my site. I keep getting a redirect loop because of the rewriting of the page.
Is there a way to do this in .htaccess file or do I have to use something else?
Is there a way to do this in .htaccess file or do I have to use something else?
I guess I should be more specific. The domain pointing to the site isn't the same as the main site. I have domain1.com as main site and I need domain2.com to point to /subfolder of the site.
Unless I am not understanding correctly. Just go into domain2.com's htaccess file, and write a 301 redirect pretty much like this:
Redirect 301 / http://www.domain1.com/subfolder
You could also set a redirect in your home page code file.
It's up to you!