httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noah <s...@onastick.net>
Subject Re: [users@httpd] mod_rewrite and <Location>
Date Sat, 04 Jun 2005 00:30:08 GMT
On Tue, May 24, 2005 at 02:33:45PM +0100, Arne Heizmann wrote:
> theshz wrote:
> >Hi, how does mod_rewrite interact with <Location> directives? I'm trying 
> >to do a url to url rewrite, but want the resulting url to go through the 
> ><Location> directives, it seems that apache skipped the <Location> part,

> >and directly looks for the file:
> > 
> >RewriteRule /foo.html /bar/test
> 
> RewriteRule /foo.html /bar/test [R]

Or, if you'd rather keep the /foo.html URL in the browser:

RewriteRule /foo.html /bar/test [PT,L]

--n

-- 
When the need arises -- and it does -- you must be able to shoot your own 
dog. Don't farm it out -- that doesn't make it nicer, it makes it worse.
                                        --Robert A. Heinlein

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