@@ -149,28 +149,28 @@ server {
149
149
return 301 https://devguide.python.org/$1;
150
150
}
151
151
location = /documenting/ {
152
- return 301 https://devguide.python.org/documenting.html ;
152
+ return 301 https://devguide.python.org/documentation/start- documenting/ ;
153
153
}
154
154
location = /documenting/index.html {
155
- return 301 https://devguide.python.org/documenting.html ;
155
+ return 301 https://devguide.python.org/documentation/start- documenting/ ;
156
156
}
157
157
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;
159
159
}
160
160
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/ ;
162
162
}
163
163
location = /documenting/rest.html {
164
- return 301 https://devguide.python.org/documenting.html#restructuredtext-primer ;
164
+ return 301 https://devguide.python.org/documentation/markup/ ;
165
165
}
166
166
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/ ;
168
168
}
169
169
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/ ;
171
171
}
172
172
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;
174
174
}
175
175
176
176
# Map toplevel URIs to Python 3 docs.
@@ -186,6 +186,8 @@ server {
186
186
187
187
# Emulate Apache's content-negotiation. Was a temporary measure,
188
188
# but now people are using it like a feature.
189
+ # Redirect ``$request_uri`` -> ``$request_uri.html``,
190
+ # where the latter is a valid webpage.
189
191
location ~ ^/((2|3)(\.[0-9]+)?|dev)/\w+/[\d\w\.]+(?!\.html)$ {
190
192
if (-f "${request_filename}.html") {
191
193
return 301 https://$host:$request_uri.html;
0 commit comments