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 #1Just Joined!
- Join Date
- Aug 2005
- Posts
- 26
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 #2Linux User
- Join Date
- Jan 2006
- Posts
- 251
a line like:
Redirect /sales/ http://www.site_a.com/depts/marketing/sales/
in httpd.conf or .htacess
(with the redirect directive)
http://www.unixreview.com/documents/s=9083/ur0403g/
http://httpd.apache.org/docs/2.0/mod/mod_alias.html
- 10-05-2006 #3
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.Code:<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



