diff --git a/webserver-configs/nginx.conf b/webserver-configs/nginx.conf index 04d1798892..814ec88466 100644 --- a/webserver-configs/nginx.conf +++ b/webserver-configs/nginx.conf @@ -10,10 +10,9 @@ server { ## Begin - Index # for subfolders, simply adjust: # `location /subfolder {` - # and the rewrite to use `/subfolder/index.php` + # and the try_file to use `/subfolder/index.php` and `/subfolder/index.html` location / { - try_files $uri $uri/ /index.html; - if (!-e $request_filename){ rewrite ^(.*)$ /index.php last; } + try_files $uri $uri/ /index.html /index.php; } ## End - Index