aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2026-01-02 16:13:57 +0200
committerJan Tuomi <jan@jantuomi.fi>2026-01-02 16:13:57 +0200
commit1b3a892b3a0af90ee7239b67eecb0d2f510aa0b9 (patch)
treef975482161539e3243b9e1db48284c18fb4ce0a4 /templates
parent533bc95c751337d5f2952252b0378848cf078357 (diff)
Add homepage migration rules
Diffstat (limited to 'templates')
-rw-r--r--templates/homepage/usr_local_etc_nginx_nginx.conf.j28
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/homepage/usr_local_etc_nginx_nginx.conf.j2 b/templates/homepage/usr_local_etc_nginx_nginx.conf.j2
index 53d1c31..7d029d2 100644
--- a/templates/homepage/usr_local_etc_nginx_nginx.conf.j2
+++ b/templates/homepage/usr_local_etc_nginx_nginx.conf.j2
@@ -19,6 +19,14 @@ http {
index index.html;
+ # Migration redirects from legacy site
+ location ~ ^/archive(?:/(.*))?$ {
+ return 302 /posts/$1$is_args$args;
+ }
+ location = /feed.xml {
+ return 302 /atom.xml;
+ }
+
location / {
try_files $uri $uri.html $uri/ =404;
}