redirection in apache
I heed help. How can I setup a redirection directive in apache (httpd)? I have a domain www.domain1.com and www.domain2.com. So what I need to do is to redirect the visitors for www.domain1.com to www.domain2.com. For example when a visitor enter www.domain1.com in a web browser I want to be automaticly redirected to a www.domain2.com. Also I will need to change the name , so when he enter www.domain1.com to be redirected to www.domain2.com but the name in the adressbar to be also changed from www.domain1.com to www.domain2.com.
Or you can add a meta tag to the top of the index.html file, something like this:
that would give you in-site control over each redirection, and allows you to point different bits of a site to different other sites. I use this technique to forward my http webmail page to my https webmail page.
<meta http-equiv="Refresh" content="0; url=http://www.domain2.com">
I'm closing this thread because for some strange reason it has become a magnet for spammers. My apologies to the original poster if your problem was not solved.