Skip to content

Commit

Permalink
followup on 2399 (#2400)
Browse files Browse the repository at this point in the history
- Repair syntax for redirects
- Remove now extraneous redirect
  • Loading branch information
ewdurbin authored Mar 11, 2024
1 parent 579f3ab commit 861e536
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions config/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ http {
return 301 http://www.python.org/psf;
}

location /psf/codeofconduct {
return 301 /psf/conduct;
}

location /topics/xml {
return 301 http://pyxml.sourceforge.net/topics;
}
Expand Down Expand Up @@ -314,19 +310,19 @@ http {
return 301 https://python.org/blogs/;
}

location ^/psf/archive/codeofconduct/?$ {
location ~ ^/psf/archive/codeofconduct/?$ {
return 302 https://policies.python.org/python.org/code-of-conduct/;
}
location ^/psf/codeofconduct/?$ {
location ~ ^/psf/codeofconduct/?$ {
return 302 https://policies.python.org/python.org/code-of-conduct/;
}
location ^/psf/conduct/?$ {
location ~ ^/psf/conduct/?$ {
return 302 https://policies.python.org/python.org/code-of-conduct/;
}
location ^/psf/conduct/enforcement/?$ {
location ~ ^/psf/conduct/enforcement/?$ {
return 302 https://policies.python.org/python.org/code-of-conduct/Enforcement-Procedures/;
}
location ^/psf/conduct/reporting/?$ {
location ~ ^/psf/conduct/reporting/?$ {
return 302 https://policies.python.org/python.org/code-of-conduct/Procedures-for-Reporting-Incidents/;
}

Expand Down

0 comments on commit 861e536

Please sign in to comment.