server: add redirect for old blog post urls

This commit is contained in:
Jez Cope 2023-07-10 19:32:57 +01:00
parent f7dc0749fb
commit 6db97a1957
1 changed files with 1 additions and 0 deletions

View File

@ -16,6 +16,7 @@
locations = {
"~ ^/(feed|rss)(\\.xml|/)".return = "301 /index.xml";
"~ ^/tags/([a-zA-Z-]+)\\.xml".return = "301 /tags/$1/index.xml";
"~ ^/20(0\\d|1[0-5])/\\d\\d/\\d//d/(.*)".return = "301 /blog/$2";
"/index.xml".extraConfig = ''
add_header Link '<https://erambler.co.uk/rss.xml>; rel="self"';