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

John Travolota lists at ruby-forum.com
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]
</IfModule>

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

-- 
Posted via http://www.ruby-forum.com/.



More information about the nginx mailing list