Forum Moderators: phranque

Message Too Old, No Replies

.htaccess question

multiple domains point to main domain with a subdomain.

         

vwillcox

9:09 pm on Apr 25, 2006 (gmt 0)



Hello,
I have several domains that point to the main one.
What I would like, is that if somebody goes to
[domain2.com...]
they get redirected to
[domain2.domain1.com...]
another example is
[domain3.com...]
[domain3.domain1.com...]

If you can understand this, can anybody please help?

Thank you very much!

jdMorgan

6:19 pm on Apr 28, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



vwillcox,

Welcome to WebmasterWorld!

This is a fairly simple exercise using Apache mod_rewrite. Since you don't appear to have a specific question, the documents cited in our Forum Charter [webmasterworld.com] will probably help you get going. Also, a search [google.com] for "subdomain rewritecond HTTP_HOST" will turn up dozens of threads on related issues.

Jim