diff --git a/mods/sample-nginx.config b/mods/sample-nginx.config index a3e4611960..0c5443828c 100644 --- a/mods/sample-nginx.config +++ b/mods/sample-nginx.config @@ -93,9 +93,7 @@ server { # by denying dot files and rewrite request to the front controller location ^~ /.well-known/ { allow all; - if (!-e $request_filename) { - rewrite ^(.*)$ /index.php?pagename=$1; - } + try_files $uri /index.php?pagename=$uri&$args; } include mime.types;