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?

 
DAkers replied on at Permalink Reply
Should just be able to do a 301 redirect in the htaccess file.

Redirect 301 / http://www.newpage.com/newpage


You could also set a redirect in your home page code file.

It's up to you!
suplitas replied on at Permalink Reply
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.
DAkers replied on at Permalink Reply
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