Rewrite Rules HELP needed
Igor Sysoev
is at rambler-co.ru
Tue May 5 14:51:40 MSD 2009
On Tue, May 05, 2009 at 04:58:43PM +0700, Glen Lumanau wrote:
> Can you please tell me how can I translate this rewrite so it can work with
> nginx?
>
> DirectoryIndex index.php
>
> RewriteEngine on
>
> RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico)
>
> RewriteCond %{REQUEST_FILENAME} !-f
>
> RewriteCond %{REQUEST_FILENAME} !-d
>
> RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]
root ...
location / {
try_files $uri $uri/ /index.php$uri$is_args$arg;
index index.php;
}
locaiton ~ \.php($|/) {
...
}
location /images { }
location /css { }
location /js { }
location = /robots.txt { }
location = /favicon.ico { }
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list