Redirect directly to /en/3/all from /en/all

This commit is contained in:
Robbie Averill 2016-12-12 14:37:18 +13:00
parent 55cd7c6fa0
commit e1fe3fa2d8
No known key found for this signature in database
GPG Key ID: 99FDF145321F81D6
1 changed files with 2 additions and 2 deletions

View File

@ -51,8 +51,8 @@ ErrorDocument 500 /assets/error-500.html
# Redirect any version > 3.4 to 3 branch
RewriteRule ^en/3\.[5-9]/(.*)?$ /en/3/$1 [R=301,L]
# Redirect old index links to the current version (via another redirect rule)
RewriteRule ^en/all\/?$ / [R=301,L]
# Redirect old index links to the current version
RewriteRule ^en/all\/?$ /en/3/all [R=301,L]
# DokuWiki rewrite rules: Need to happen before other rules in order to redirect /doku.php?id=<pagename>
# to /pagename, which can then be matched by the legacy rewrite rules further down