rewrite except one directory
Philipp Kraus
philipp.kraus at tu-clausthal.de
Sun Feb 16 06:58:33 UTC 2014
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
More information about the nginx
mailing list