Re: Apache, mod_rewrite and directory context

2012-06-06 Thread Tony Baldwin
On Tue, Jun 05, 2012 at 06:40:10PM +0200, Claudius Hubig wrote: > Hello Jimmy, > > Jimmy Thrasibule wrote: > > > > > > > > RewriteEngine On > > RewriteCond %{REQUEST_FILENAME} !-f > > RewriteCond %{REQUEST_FILENAME} !-d > > RewriteCond %{REQUEST_URI} !=/favicon.ic

Re: Apache, mod_rewrite and directory context

2012-06-05 Thread Claudius Hubig
Hello Jimmy, Jimmy Thrasibule wrote: > > > > RewriteEngine On > RewriteCond %{REQUEST_FILENAME} !-f > RewriteCond %{REQUEST_FILENAME} !-d > RewriteCond %{REQUEST_URI} !=/favicon.ico > RewriteRule ^/(.*)$ index.php?q=$1 [L,QSA] > > > http://httpd.ap

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