diff --git a/mods/sample-nginx.config b/mods/sample-nginx.config index 0c5443828..e4ce90251 100644 --- a/mods/sample-nginx.config +++ b/mods/sample-nginx.config @@ -84,9 +84,7 @@ server { # rewrite to front controller as default rule location / { - if (!-e $request_filename) { - rewrite ^(.*)$ /index.php?pagename=$1; - } + try_file $uri /index.php?pagename=$uri&$args; } # make sure webfinger and other well known services aren't blocked