diff --git a/conf/nginx.conf b/conf/nginx.conf index a7ea00a..4dc56d5 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -8,10 +8,11 @@ location __PATH__ { rewrite ^ https://$server_name$request_uri? permanent; } - index index.php /_route.php; try_files $uri $uri/ index.php /_route.php; + index index.php /_route.php; location ~ [^/]\.php(/|$) { + try_files $uri $uri/ /_route.php; fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_pass unix:/var/run/php/php7.0-fpm-__NAME__.sock; fastcgi_index index.php;