You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Joshua Slive <jo...@slive.ca> on 2006/03/18 01:08:12 UTC

Re: [users@httpd] mod_rewrite doesn't always prefix with document_root

On 3/17/06, Jon Drukman <js...@cluttered.com> wrote:
> I've got the following rule in my config:
>
> rewriterule ^/e3/(.*) /misc/e3/$1 [L]
>
> It doesn't work.  If I change the "/misc" to "/test", it does.

Do you happen to have a /misc/e3 directory off your filesystem root? 
If so, mod_rewrite assumes you want that.

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


[users@httpd] Re: mod_rewrite doesn't always prefix with document_root

Posted by Jon Drukman <js...@cluttered.com>.
Joshua Slive wrote:
> On 3/17/06, Jon Drukman <js...@cluttered.com> wrote:
> 
>>I've got the following rule in my config:
>>
>>rewriterule ^/e3/(.*) /misc/e3/$1 [L]
>>
>>It doesn't work.  If I change the "/misc" to "/test", it does.
> 
> 
> Do you happen to have a /misc/e3 directory off your filesystem root? 
> If so, mod_rewrite assumes you want that.

i have a /misc but no /misc/e3.  i can work around it using robert's 
suggestion.

-jsd-


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