ErrorDocument 404 /derivepassphrase/latest/404.html RewriteEngine on RewriteBase /derivepassphrase/ RewriteRule ^(index\.html)?$ latest/ [R=307,L] RewriteRule ^(0.x|latest)/reference/derivepassphrase/(.*)$ $1/reference/derivepassphrase.cli/$2 [R=301,L] RewriteRule ^(0.x|latest)/reference/(exporter)(?:_vault)?/(.*)$ $1/reference/derivepassphrase.$2/$3 [R=301,L] RewriteRule ^(0.x|latest)/reference/(ssh_agent)(?:_client)?/(.*)$ $1/reference/derivepassphrase.$2/$3 [R=301,L] RewriteRule ^(0.x|latest)/reference/(sequin|vault)/(.*)$ $1/reference/derivepassphrase.$2/$3 [R=301,L] RewriteRule ^(0.x|latest)/reference/(types)/(.*)$ $1/reference/derivepassphrase._$2/$3 [R=301,L]