Need to converrt this small htaccess code for seo url's

John Travolota lists at
Tue Apr 26 02:27:16 MSD 2011

This is htaccess:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

And this is what i got for nginx but not sure is it ok:
if (-f $request_filename) {
if (-d $request_filename) {
rewrite /. /index.php last;
So if someone knows better please help.

Posted via

More information about the nginx mailing list