httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bob Smith <bsm...@sudleyplace.com>
Subject Re: [users@httpd] Redirecting all url's to a unique one while updating the site
Date Fri, 14 Jan 2005 14:56:03 GMT
Try this:

RewriteEngine   on
RewriteCond     %{HTTP_HOST}    ^(.+\.)*yourdomain\.com$ [NC]
RewriteRule     ^.*$            /path/to/unique/page/index.html [L]

If this is a one domain site, you can skip the RewriteCond.

On 1/14/2005 7:47 AM, Zouari Fourat wrote:
> didnt find the correct directive/regex to use with mod_rewrite, can
> anybody help me ?
> 
> 
> On Fri, 14 Jan 2005 12:35:55 +0100, André Malo <nd@perlig.de> wrote:
> 
>>* Grand Apeiron wrote:
>>
>>
>>>On Fri, 2005-01-14 at 12:02 +0100, Zouari Fourat wrote:
>>>
>>>>Hello
>>>>I would like to redirect all visits to a unique page on wich i'll show
>>>>that the site is under maintenance and remove this option once
>>>>finished my updates.
>>>>is there anybody who made that simple ?
>>>
>>>You can achieve that with mod_rewrite
>>>
>>>http://httpd.apache.org/docs-2.0/misc/rewriteguide.html
>>
>>Well, that's possible (but not that good in terms of HTTP), but there's a
>>better solution using mod_alias:
>>
>>Redirect 503 /

-- 
_______________________________________________________________
Bob Smith - bsmith@sudleyplace.com - http://www.sudleyplace.com
a.k.a.      bsmith@qualitas.com    - http://www.qualitas.com


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message