[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Apache mod_rewrite question



Ian (cobalt@xxxxxxxxxxxxx; Tuesday, April 01, 2003 7:12 AM):

> Hi List,

> I wish to redirect all visits to any page on a vsite to one 
> particular page.
> For example to site_down.html.

> Does anyone know the mod_rewrite syntax for this ?

This might do the trick. I am assuming you want a temporary
redirection.

RewriteEngine on
RewriteRule ^/.*$ /site_down.html [R,L]


See http://httpd.apache.org/docs/misc/rewriteguide.html and
http://httpd.apache.org/docs/mod/mod_rewrite.html for details.

-- 

Jeremy Wadsack
Wadsack-Allen Digital Group