webmastadj
2008-08-23, 10:29 AM CDT
I have an issue. I am trying to redirect a domain name to another domain name using the apache config file.
I have abc123.com and I want to forward that to abc321.com. I know how to do that, the problem is forwarding EVERYTHING to that domain. For example:
abc123.com/page/information/index.html to abc321.com
abc123.com/pages.html to abc321.com
I am looking for a wild card of sorts. So that ANY time a person visits abc123.com no matter what is behind it, it forwards to the main page of the other site.
abc123.com/*.* to abc321.com
How can I do this in the apache config file? I know there is something to do with the Mod_Rewrite feature but not sure how to go about setting it up.
I have abc123.com and I want to forward that to abc321.com. I know how to do that, the problem is forwarding EVERYTHING to that domain. For example:
abc123.com/page/information/index.html to abc321.com
abc123.com/pages.html to abc321.com
I am looking for a wild card of sorts. So that ANY time a person visits abc123.com no matter what is behind it, it forwards to the main page of the other site.
abc123.com/*.* to abc321.com
How can I do this in the apache config file? I know there is something to do with the Mod_Rewrite feature but not sure how to go about setting it up.