X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mods%2Fsample-nginx.config;h=5a939721082543a4a5bca88be5469101aede07b1;hb=2022d0e812d191acd47b8408f933dfb726a21b92;hp=a3e4611960c879acc0f85a2610b6d5573f17758d;hpb=f44cb1ccce16ee76c2a47dc096f31058e78d59d8;p=friendica.git diff --git a/mods/sample-nginx.config b/mods/sample-nginx.config index a3e4611960..5a93972108 100644 --- a/mods/sample-nginx.config +++ b/mods/sample-nginx.config @@ -84,18 +84,14 @@ server { # rewrite to front controller as default rule location / { - if (!-e $request_filename) { - rewrite ^(.*)$ /index.php?pagename=$1; - } + try_files $uri /index.php?pagename=$uri&$args; } # make sure webfinger and other well known services aren't blocked # 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;