8000 phase one of pep 676 finalization, temporary redirects to peps.python… · python/pythondotorg@0fb5715 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0fb5715

Browse files
authored
phase one of pep 676 finalization, temporary redirects to peps.python.org (#2006)
1 parent c8631ca commit 0fb5715

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

config/nginx.conf.erb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,18 @@ http {
268268
return 302 https://www.python.org/dev/peps/;
269269
}
270270

271+
location ~ ^/dev/peps/?(.*)$ {
272+
return 302 https://peps.python.org/$1/;
273+
}
274+
275+
location ~ ^/peps/(.*)\.html$ {
276+
return 302 https://peps.python.org/$1/;
277+
}
278+
279+
location ^/(dev/)?peps(/.*)?$ {
280+
return 302 https://peps.python.org/;
281+
}
282+
271283
location ~ ^/sf(.*)$ {
272284
if ($is_args != "") {
273285
return 302 http://legacy.python.org/sf?$args;

0 commit comments

Comments
 (0)
0