Welcome! Log In Create A New Profile

Advanced

Re: Rewrite Rules HELP needed

May 05, 2009 06:56AM
On Tue, May 05, 2009 at 02:51:40PM +0400, Igor Sysoev wrote:

> 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;

- try_files $uri $uri/ /index.php$uri$is_args$arg;
+ try_files $uri $uri/ /index.php$uri$is_args$args;

> index index.php;
> }
>
> locaiton ~ \.php($|/) {
> ...
> }
>
> location /images { }
> location /css { }
> location /js { }
> location = /robots.txt { }
> location = /favicon.ico { }
>
>
> --
> Igor Sysoev
> http://sysoev.ru/en/

--
Igor Sysoev
http://sysoev.ru/en/
Subject Author Posted

Rewrite Rules HELP needed

Glen Lumanau May 05, 2009 05:58AM

Re: Rewrite Rules HELP needed

Igor Sysoev May 05, 2009 06:51AM

Re: Rewrite Rules HELP needed

Igor Sysoev May 05, 2009 06:56AM

Re: Log HTTP Auth Failures

Igor Sysoev May 05, 2009 10:59AM

Re: Log HTTP Auth Failures

Cody May 05, 2009 11:09AM

Re: Log HTTP Auth Failures

Igor Sysoev May 05, 2009 11:16AM

Re: Log HTTP Auth Failures

Cody May 05, 2009 11:29AM

Log HTTP Auth Failures

Cody May 05, 2009 10:57AM

Re: Rewrite Rules HELP needed

Glen Lumanau May 05, 2009 07:04AM

Re: Rewrite Rules HELP needed

Igor Sysoev May 05, 2009 07:06AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 239
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