diff --git a/config/nginx.conf.erb b/config/nginx.conf.erb index e2f71c20c..6811b7c39 100644 --- a/config/nginx.conf.erb +++ b/config/nginx.conf.erb @@ -268,6 +268,18 @@ http { return 302 https://www.python.org/dev/peps/; } + location ~ ^/dev/peps/?(.*)$ { + return 302 https://peps.python.org/$1/; + } + + location ~ ^/peps/(.*)\.html$ { + return 302 https://peps.python.org/$1/; + } + + location ^/(dev/)?peps(/.*)?$ { + return 302 https://peps.python.org/; + } + location ~ ^/sf(.*)$ { if ($is_args != "") { return 302 http://legacy.python.org/sf?$args;