rewrite except one directory

Philipp Kraus philipp.kraus at
Sun Feb 16 06:58:33 UTC 2014


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?



More information about the nginx mailing list