LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   apache: http redirect for any request going to www.foo.com/* (https://www.linuxquestions.org/questions/linux-software-2/apache-http-redirect-for-any-request-going-to-www-foo-com-%2A-312137/)

psychobyte 04-11-2005 04:28 PM

apache: http redirect for any request going to www.foo.com/*
 
Hi,

Can anyone hint as how to redirect any request to a website to another webpage. For example, I have a site http://www.foo.com/

I'd like any request to http://www.foo.com/ or http://www.foo.com/someotherpage.html to get redirected to one page. (I'm closing this site down and want anyone going there to be redirected to teh new site).

I'm using Apache.

Thanks,

packetz 04-11-2005 05:57 PM

use this heading of your default page on the old site

<HEAD>
<META HTTP-EQUIV="refresh"
CONTENT="0;URL=http://your site dot com">
</HEAD>


All times are GMT -5. The time now is 07:20 AM.