.htaccess redirect domain alias / parked domain
Posted
by Calua
on Stack Overflow
See other posts from Stack Overflow
or by Calua
Published on 2010-04-27T06:32:06Z
Indexed on
2010/04/27
6:43 UTC
Read the original article
Hit count: 258
.htaccess
|mod-rewrite
Hi...
I have a .htaccess related question.
For example, if I have two domain, a.com and b.com. All referring to one host (b.com is domain alias of a.com). I want visitor that visit a.com will be referred to url with www (http://www.a.com). As for the visitor of http://b.com will be referred to the www url (http://www.b.com).
How can I do this with .htaccess??
Thanks, any help will be much appreciated :)
© Stack Overflow or respective owner