try removal of extension
This commit is contained in:
parent
5e7952d1d6
commit
a78fdca749
@ -112,7 +112,10 @@ http {
|
||||
index index.html;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
if ($request_uri ~ ^/(.*)\.html(\?|$)) {
|
||||
return 302 /$1;
|
||||
}
|
||||
try_files $uri $uri.html $uri/ =404;
|
||||
}
|
||||
|
||||
location ~* .(jpg|jpeg|png|gif|ico|css|js)$ {expires 30d;}
|
||||
|
Loading…
Reference in New Issue
Block a user