Skip to content

Commit d4d24c7

Browse files
committed
redirect /news/ to /blogs/ as a 302
1 parent 41f8e9d commit d4d24c7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

config/nginx.conf.erb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,10 @@ http {
273273
return 302 http://legacy.python.org/sf$1;
274274
}
275275

276+
location /news/ {
277+
return 302 /blogs/;
278+
}
279+
276280
location /static/ {
277281
alias /app/static-root/;
278282
add_header Cache-Control "max-age=604800, public"; # 604800 is 7 days

0 commit comments

Comments
 (0)