nginx: try to rewrite site without slash

This commit is contained in:
creme 2020-01-18 09:11:40 +00:00
parent f772c7fbac
commit b327689045
1 changed files with 2 additions and 1 deletions

View File

@ -35,7 +35,7 @@ server {
root /var/www/envs.net/;
index index.php index.html;
#rewrite ^([^.\?]*[^/])$ $1/ permanent;
#rewrite ^([^.]*[^/])$ $1/ permanent;
location / {
add_header Access-Control-Allow-Origin *;
@ -43,6 +43,7 @@ server {
}
location @extensionless-php {
rewrite ^(.*)/$ $1.php last;
rewrite ^(.*)$ $1.php last;
}
location /cgi-bin {