fix(ops/www): Strip .html
from TVL blog post URLs
Change-Id: I4d1f9284ec004931c07c04d614b01f28eedea508
This commit is contained in:
parent
e61b50baf9
commit
68d1f834a3
1 changed files with 8 additions and 0 deletions
|
@ -25,6 +25,14 @@
|
||||||
location ~* \.(webp|woff2)$ {
|
location ~* \.(webp|woff2)$ {
|
||||||
add_header Cache-Control "public, max-age=31536000";
|
add_header Cache-Control "public, max-age=31536000";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /blog {
|
||||||
|
if ($request_uri ~ ^/(.*)\.html$) {
|
||||||
|
return 302 /$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
try_files $uri $uri.html $uri/ =404;
|
||||||
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue