No need to add trailing slashes?

This commit is contained in:
Aaron Louie 2020-05-27 08:42:49 -04:00
parent 8b438a8114
commit d015679cd9
1 changed files with 1 additions and 2 deletions

View File

@ -4,8 +4,7 @@ server {
location $BASE_HREF/ {
alias /etc/nginx/html/;
index index.html index.htm;
try_files $uri$args $uri$args/ $uri $BASE_HREF/index.html;
rewrite ^([^.]*[^/])$ $1/ permanent;
try_files $uri$args $uri $BASE_HREF/index.html;
}
}