try removal of extension

This commit is contained in:
Tanishq Dubey 2023-07-15 21:13:37 -04:00
parent 5e7952d1d6
commit a78fdca749

View File

@ -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;}