aboutsummaryrefslogtreecommitdiffstats
path: root/templates/homepage/usr_local_etc_nginx_nginx.conf.j2
diff options
context:
space:
mode:
Diffstat (limited to 'templates/homepage/usr_local_etc_nginx_nginx.conf.j2')
-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;
}