aboutsummaryrefslogtreecommitdiffstats
path: root/templates/homepage
diff options
context:
space:
mode:
Diffstat (limited to 'templates/homepage')
-rw-r--r--templates/homepage/usr_local_etc_nginx_nginx.conf.j25
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/homepage/usr_local_etc_nginx_nginx.conf.j2 b/templates/homepage/usr_local_etc_nginx_nginx.conf.j2
index 079f89d..ee45405 100644
--- a/templates/homepage/usr_local_etc_nginx_nginx.conf.j2
+++ b/templates/homepage/usr_local_etc_nginx_nginx.conf.j2
@@ -41,10 +41,11 @@ http {
# Migration redirects from legacy site
location ~ ^/archive(?:/(.*))?$ {
- return 302 /posts/$1$is_args$args;
+ return 307 /posts/$1$is_args$args;
}
location = /feed.xml {
- return 302 /atom.xml;
+ # Serve atom.xml content at the legacy feed.xml URL (no redirect)
+ rewrite ^ /atom.xml break;
}
location / {