Update redirects to match new URL convention for reference pages
Marco Ricci

Marco Ricci commited on 2024-10-15 15:08:37
Zeige 1 geänderte Dateien mit 5 Einfügungen und 1 Löschungen.


As of 67bc70a2ea9bbf20c5e36f3e64ecfe9bdca3bb01, reference pages use the
same filename convention as the Python standard library documentation,
at least when viewed locally: the basename of the file is the full,
dotted module name, and all such documentation pages are laid out in the
same directory.
... ...
@@ -2,4 +2,8 @@ ErrorDocument 404 /derivepassphrase/latest/404.html
2 2
 RewriteEngine on
3 3
 RewriteBase /derivepassphrase/
4 4
 RewriteRule ^(index\.html)?$ latest/ [R=307,L]
5
-RewriteRule ^(0.x|latest)/reference/ssh_agent_client/(.*)$ $1/reference/ssh_agent/$2 [R=301,L]
5
+RewriteRule ^(0.x|latest)/reference/derivepassphrase/(.*)$ $1/reference/derivepassphrase.cli/$2 [R=301,L]
6
+RewriteRule ^(0.x|latest)/reference/(exporter)(?:_vault)?/(.*)$ $1/reference/derivepassphrase.$2/$3 [R=301,L]
7
+RewriteRule ^(0.x|latest)/reference/(ssh_agent)(?:_client)?/(.*)$ $1/reference/derivepassphrase.$2/$3 [R=301,L]
8
+RewriteRule ^(0.x|latest)/reference/(sequin|vault)/(.*)$ $1/reference/derivepassphrase.$2/$3 [R=301,L]
9
+RewriteRule ^(0.x|latest)/reference/(types)/(.*)$ $1/reference/derivepassphrase._$2/$3 [R=301,L]
6 10