Welcome! Log In Create A New Profile

Advanced

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

John Travolota
April 25, 2011 06:28PM
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/.

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

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

John Travolota April 25, 2011 06:28PM

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

Wendal Chen April 25, 2011 09:54PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 152
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready