httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Douville" <st...@douville.net>
Subject Re: [users@httpd] Redirect Help Please
Date Thu, 17 Jun 2004 18:47:33 GMT
Perfect. Thanks.
----- Original Message ----- 
From: "Joshua Slive" <joshua@slive.ca>
To: <users@httpd.apache.org>
Sent: Thursday, June 17, 2004 2:02 PM
Subject: Re: [users@httpd] Redirect Help Please


> On Thu, 17 Jun 2004, Steve Douville wrote:
> > RedirectTemp http://www.mydomain.com/ http://www.mydomain.com/temp/
>
> The first argument to Redirect* is a local-web-path, not a URL.  For
> example:
> RedirectTemp / http://www.mydomain.com/temp/
>
> But it seems like you wouldn't want the default Redirect behavior, which
> is to do sub-string matching ("/" matches anything beginning in "/").  So
> probably what you want is
>
> RedirectMatch temp ^/$ http://www.mydomain.com/temp/
>
> which hits only requests for the homepage.
>
> If you want to restrict this to only a particular source-hostname, then
> you need to place it within an appropirate <VirtualHost> section.
>
> Joshua.
>
> ---------------------------------------------------------------------
> 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
>
>
>
>


---------------------------------------------------------------------
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