@@ -149,28 +149,28 @@ server {
149149 return 301 https://devguide.python.org/$1;
150150 }
151151 location = /documenting/ {
152- return 301 https://devguide.python.org/documenting.html ;
152+ return 301 https://devguide.python.org/documentation/start- documenting/ ;
153153 }
154154 location = /documenting/index.html {
155- return 301 https://devguide.python.org/documenting.html ;
155+ return 301 https://devguide.python.org/documentation/start- documenting/ ;
156156 }
157157 location = /documenting/intro.html {
158- return 301 https://devguide.python.org/documenting.html #introduction;
158+ return 301 https://devguide.python.org/documentation/start- documenting/ #introduction;
159159 }
160160 location = /documenting/style.html {
161- return 301 https://devguide.python.org/documenting.html# style-guide;
161+ return 301 https://devguide.python.org/documentation/ style-guide/ ;
162162 }
163163 location = /documenting/rest.html {
164- return 301 https://devguide.python.org/documenting.html#restructuredtext-primer ;
164+ return 301 https://devguide.python.org/documentation/markup/ ;
165165 }
166166 location = /documenting/markup.html {
167- return 301 https://devguide.python.org/documenting.html#additional- markup-constructs ;
167+ return 301 https://devguide.python.org/documentation/ markup/ ;
168168 }
169169 location = /documenting/fromlatex.html {
170- return 301 https://devguide.python.org/documenting.html#differences-to-the-latex- markup;
170+ return 301 https://devguide.python.org/documentation/ markup/ ;
171171 }
172172 location = /documenting/building.html {
173- return 301 https://devguide.python.org/documenting.html #building-the-documentation;
173+ return 301 https://devguide.python.org/documentation/start- documenting/ #building-the-documentation;
174174 }
175175
176176 # Map toplevel URIs to Python 3 docs.
@@ -186,6 +186,8 @@ server {
186186
187187 # Emulate Apache's content-negotiation. Was a temporary measure,
188188 # but now people are using it like a feature.
189+ # Redirect ``$request_uri`` -> ``$request_uri.html``,
190+ # where the latter is a valid webpage.
189191 location ~ ^/((2|3)(\.[0-9]+)?|dev)/\w+/[\d\w\.]+(?!\.html)$ {
190192 if (-f "${request_filename}.html") {
191193 return 301 https://$host:$request_uri.html;
0 commit comments