Results 1 to 4 of 4
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 07-17-2006 #1
- Join Date
- Aug 2005
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.
- 07-17-2006 #2
- Join Date
- Jan 2006
a line like:
Redirect /sales/ http://www.site_a.com/depts/marketing/sales/
in httpd.conf or .htacess
(with the redirect directive)
- 10-05-2006 #3
Or you can add a meta tag to the top of the index.html file, something like this:
<meta http-equiv="Refresh" content="0; url=http://www.domain2.com">Linux user #126863 - see http://linuxcounter.net/
- 10-10-2006 #4
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.Registered Linux user #270181
TechieMoe's Tech Rants