Fixed missing NGINX rewrite rule for Drupal 7 & 8

This commit is contained in:
Phinitnan Chanasabaeng 2018-08-07 14:02:36 +07:00
commit d2d6b85d43
76 changed files with 323 additions and 19 deletions

View file

@ -48,6 +48,10 @@ server {
return 404;
}
location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1;
}
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}

View file

@ -44,6 +44,10 @@ server {
return 404;
}
location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1;
}
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}

View file

@ -48,6 +48,10 @@ server {
return 404;
}
location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1;
}
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}

View file

@ -42,7 +42,11 @@ server {
location ~ /vendor/.*\.php$ {
deny all;
return 404;
}
}
location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1;
}
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;