location / { rewrite ^/.*$ /index.php last; } # Whitelist location = /favicon.ico { try_files $uri /index.php; } location ~ ^/.*\.xml { try_files $uri /index.php; } location = /robots.txt { try_files $uri /index.php; } location = /humans.txt { try_files $uri /index.php; }