Skip to content

Commit

Permalink
fix download redirects to match previous behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
ewdurbin committed Mar 5, 2024
1 parent 95304aa commit 1a01fce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions config/nginx.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -208,19 +208,19 @@ http {
return 301 https://www.python.org/download/windows/;
}

location /download/ {
location ~ ^/download/$ {
return 301 https://www.python.org/downloads/;
}

location /download/source/ {
location ~ ^/download/source/$ {
return 301 https://www.python.org/downloads/source/;
}

location /download/mac/ {
location ~ ^/download/mac/$ {
return 301 https://www.python.org/downloads/macos/;
}

location /download/windows/ {
location ~ ^/download/windows/$ {
return 301 https://www.python.org/downloads/windows/;
}

Expand Down

0 comments on commit 1a01fce

Please sign in to comment.