Skip to content

Commit

Permalink
Make .html optional for toplevel page redirects (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
zware committed Sep 19, 2022
1 parent 3237feb commit 3cc68cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salt/docs/config/nginx.docs-backend.conf
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ server {
location ~ ^/((archives|c-api|distutils|extending|faq|howto|install|library|reference|tutorial|using|whatsnew|_images|_sources|_static)(/.*)?)$ {
return 301 https://$host/3/$1;
}
location ~ ^/(about|bugs|contents|copyright|download|genindex.*|glossary|index|license|py-modindex|search).html$ {
location ~ ^/(about|bugs|contents|copyright|download|genindex.*|glossary|index|license|py-modindex|search)(.html)?$ {
return 301 https://$host/3/$1.html;
}
location ~ ^/(searchindex.js|objects.inv)$ {
Expand Down

0 comments on commit 3cc68cb

Please sign in to comment.