From 1b3a892b3a0af90ee7239b67eecb0d2f510aa0b9 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Fri, 2 Jan 2026 16:13:57 +0200 Subject: Add homepage migration rules --- templates/homepage/usr_local_etc_nginx_nginx.conf.j2 | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'templates') 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; } -- cgit v1.3