> 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-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to