diff --git a/conf/nginx.conf b/conf/nginx.conf index 17a1159..d6b7aa9 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -117,13 +117,7 @@ location ^~ __PATH__/ { } location ~ / { - if ($request_method ~ ^PUT$) { - rewrite ^ __PATH__/index.php$request_uri last; - } - if ($request_method ~ ^DELETE$) { - rewrite ^ __PATH__/index.php$request_uri last; - } - if ($request_method ~ ^PATCH$) { + if ($request_method ~ ^(PUT|DELETE|PATCH)$) { rewrite ^ __PATH__/index.php$request_uri last; } try_files $uri / __PATH__/index.php$request_uri;