Welcome! Log In Create A New Profile

Advanced

rewrite except one directory

Philipp Kraus
February 16, 2014 02:00AM
Hello,

I'm using the following rewrite options

{
try_files $uri @pico;
}

location @pico
{
rewrite ^(.*)$ /index.php;
}


So I would like to disable the rewrite for one subfolder. I have some PHP scripts with should not use the
rewrite call e.g. http://myserver/scripts/script1.php. All scripts with are in the /script location should not
use the rewrite to the index.

How can I do this?

Thanks

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

rewrite except one directory

Philipp Kraus February 16, 2014 02:00AM

Re: rewrite except one directory

Francis Daly February 16, 2014 04:50AM

Re: rewrite except one directory

Philipp Kraus February 16, 2014 02:58PM

Re: rewrite except one directory

Jim Ohlstein February 16, 2014 03:40PM

Re: rewrite except one directory

Philipp Kraus February 16, 2014 03:56PM

Re: rewrite except one directory

Francis Daly February 16, 2014 04:46PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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