htaccess to nginx

peter at donka.hu peter at donka.hu
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:
http://www.anilcetin.com/convert-apache-htaccess-to-nginx/
and this: http://winginx.com/htaccess

non of them work properly.

anybody can help me out about this?

Thx!
Peter



More information about the nginx mailing list