Welcome! Log In Create A New Profile

Advanced

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

Wendal Chen
April 25, 2011 09:54PM
try_files $uri $uri/ /index.php?q=$uri ;

2011/4/26 John Travolota <lists@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@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>



--
Wendal Chen
http://t.sina.com.cn/1068040557?s=6uyXnP
_______________________________________________
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: 316
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