Re: [users@httpd] mod_rewrite and directory context

2012-06-05 Thread Jimmy Thrasibule
> 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 --

Re: [users@httpd] mod_rewrite and directory context

2012-06-05 Thread Jimmy Thrasibule
> 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

Re: [users@httpd] mod_rewrite and directory context

2012-06-04 Thread Igor Cicimov
On Tue, Jun 5, 2012 at 12:42 PM, Eric Covener wrote: > On Mon, Jun 4, 2012 at 10:38 PM, Igor Cicimov wrote: > > First this is wrong: > > > > Options -Indexes +FollowSymLinks > > > > You should never mix + and - in the Options. > > > > Isn't it just +/- and non +/- that are the mix to avoid? > >

Re: [users@httpd] mod_rewrite and directory context

2012-06-04 Thread Eric Covener
On Mon, Jun 4, 2012 at 10:38 PM, Igor Cicimov wrote: > First this is wrong: > > Options -Indexes +FollowSymLinks > > You should never mix + and - in the Options. > Isn't it just +/- and non +/- that are the mix to avoid? - To un

Re: [users@httpd] mod_rewrite and directory context

2012-06-04 Thread Igor Cicimov
First this is wrong: Options -Indexes +FollowSymLinks You should never mix + and - in the Options. 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. Igor On Jun 5, 2012 4:29 AM, "Jimmy Thrasibule" wrote: >

[users@httpd] mod_rewrite and directory context

2012-06-04 Thread Jimmy Thrasibule
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