Welcome! Log In Create A New Profile

Advanced

htaccess to nginx

Anonymous User
January 14, 2013 08:04AM
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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

htaccess to nginx

Anonymous User January 14, 2013 08:04AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 276
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready