LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   apache redirecting (https://www.linuxquestions.org/questions/linux-networking-3/apache-redirecting-169894/)

mardanian 04-14-2004 12:46 AM

apache redirecting
 
i have apache installed, now wana use apache to redirect to a site which is hosted on another server for example i want

1) my acutall site is www.foo.com (on another foriegn server)
2) now I want if someone type www.abc.com it should open www.foo.com

anyone any idea

leckie 04-14-2004 06:17 AM

well the most ideal way is to gain access to the dns entry and cname link the domain to the other, but this does not give you a new dns name.
So you can do a simple http redirect by putting this into a file called index.html
<meta http-equiv="refresh" content="0; URL=http://new.domain.name.com/">

seams to redirect me in less then a second

then simple put this in the http root of the server you want to redirect


All times are GMT -5. The time now is 07:10 PM.