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

Wendal Chen wendal1985 at gmail.com
Tue Apr 26 05:52:07 MSD 2011


try_files $uri $uri/ /index.php?q=$uri ;

2011/4/26 John Travolota <lists at ruby-forum.com>

> 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 at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>



-- 
Wendal Chen
<http://t.sina.com.cn/1068040557?s=6uyXnP>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20110426/b46c9186/attachment.html>


More information about the nginx mailing list