diff --git a/nginx.conf b/nginx.conf index 96a48816..6b239695 100644 --- a/nginx.conf +++ b/nginx.conf @@ -9,7 +9,7 @@ location / { rewrite ^/(cache|config|formwork|templates|vendor)/.* index.php last; rewrite ^/(.*)\.(md|yml|json)/?$ /index.php last; - rewrite ^/(LICENSE|composer\.lock|\.gitignore|\.php_cs|nginx.conf)/?$ /index.php last; + rewrite ^/(\.(.*)|LICENSE|composer\.lock|nginx.conf)/?$ /index.php last; ## Let all URI be processed by index.php if (!-e $request_filename) { @@ -19,5 +19,5 @@ location / { location /admin { rewrite ^/admin/(accounts|languages|logs|schemes|src|views)/.* /index.php last; - rewrite ^/admin/\.eslintrc|gulpfile\.js/?$ /index.php last; + rewrite ^/admin/(\.(.*)|gulpfile\.js)/?$ /index.php last; }