htaccess to nginx

peter at peter at
Mon Jan 14 12:06:04 UTC 2013

Hi guys!

I have this rewrite rule in apache:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^([\w\.-]*)(?:\/(.*))?$ $1.php?q=$2 [QSA,L]

I need to translate it to the nginx. I tryed this:
and this:

non of them work properly.

anybody can help me out about this?


More information about the nginx mailing list