Redirect any call to a domain to a single HTML page

Jamon Camisso jamon.camisso-H217xnMUJC0sA/PxXw9srA at public.gmane.org
Thu Dec 3 23:38:25 UTC 2009


Madison Kelly wrote:
> Hi all,
> 
>   I've moved a website (internal wiki) to a new server. I'd like to 
> setup apache on the old server to redirect any call to *any* page to a 
> specific HTML page. Or, ideally, have a dynamic redirect the forwards to 
> the same page on a different domain. Is this possible?
> 
> It's Apache 2.2, by the way. :)

Redirect is the least expensive, one line on the old server :)

Redirect Permanent / http://foo.com/

Every request to /bar will redirect to http://foo.com/bar on the target 
server. It will also send the correct 301 http code to the client 
browser indicating the permanence of the move.

Jamon
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list