Welcome! Log In Create A New Profile

Advanced

Re: Help on rewrite rule

Denis F. Latypoff
October 17, 2011 04:50PM
18.10.2011, 03:36, "Nginx User" <nginx@nginxuser.net>:
> On 17 October 2011 23:35, Nginx User <nginx@nginxuser.net> wrote:
>
>>  rewrite ^/main\.php(.*) index.php$1;
>
> Sorry
> rewrite ^/main\.php(.*) /index.php$1;
>

forget about rewrite with nginx:

location = /main.php {
fastcgi_pass ...
fastcgi_param SCRIPT_NAME /index.php;
fastcgi_param SCRIPT_FILENAME /path/to/index.php;
}

--
br, Denis F. Latypoff.

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

Help on rewrite rule

microchip October 17, 2011 04:24PM

Re: Help on rewrite rule

Nginx User October 17, 2011 04:36PM

Re: Help on rewrite rule

Nginx User October 17, 2011 04:38PM

Re: Help on rewrite rule

Denis F. Latypoff October 17, 2011 04:50PM

Re: Help on rewrite rule

microchip October 17, 2011 04:49PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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