> So it looks like that `mod_rewrite` is applying the last rule but the
> conditions are not tested.
OK, I saw my regrettable error, the regex was not correct due to
directory stripping.
This one is now working:
RewriteRule ^(.+)$ index.php?q=/$1 [QSA,L]
--
Jimmy
--
> 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) i
Hi,
I'm trying to pass everything that is not a file to `index.php` as a
request parameter without using a `.htaccess` file.
A request to http://www.example.com/test must be rewritten to
http://www.example.com/index.php?q=/test.
I'm using Debian Squeeze (6.0) and Apache 2.2.16. Here is my
config