]> git.mxchange.org Git - friendica.git/blobdiff - mods/sample-nginx.config
[nginx] Use try_files instead of if for /.well-known/.
[friendica.git] / mods / sample-nginx.config
index a3e4611960c879acc0f85a2610b6d5573f17758d..0c5443828c344e1f3580e6b50a86089f782062a5 100644 (file)
@@ -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;