httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jimmy Thrasibule <thrasibule.ji...@gmail.com>
Subject Re: [users@httpd] mod_rewrite and directory context
Date Tue, 05 Jun 2012 08:48:13 GMT
> Second if you read mod_rewrite docs you will see that QSA flag appends
> something, which is why you have double "test" as rewrite result.

I just mess with the directory names but the output is correct and QSA
is the behavior I want.

Here is the correct logs output:

GET /mypath HTTP/1.1

(2) init rewrite engine with requested uri /mypath
(3) applying pattern '^/(.*)' to uri '/mypath'
(4) RewriteCond: input='www.test.com' pattern='!^www\.test\.com$' [NC]
=> not-matched
(1) pass through /mypath
(3) [perdir /var/www/example/] strip per-dir
prefix: /var/www/example/mypath -> mypath
(3) [perdir /var/www/example/] applying pattern '^/(.*)$' to uri
'mypath'
(1) [perdir /var/www/example/] pass through /var/www/example/mypath

File does not exist: /var/www/example/mypath

So it looks like that `mod_rewrite` is applying the last rule but the
conditions are not tested.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message