From bd9f3343da0a9df657fe061eb84697079d1afe21 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20Pr=C3=A9vot?= Date: Thu, 28 Apr 2011 22:24:31 -0400 Subject: [PATCH] Handle a RewriteMap for Debian Reference The Debian Reference has been moved from SGML to DocBook. Signed-off-by: Simon Paillard --- .../common/etc/apache2/sites-available/www.debian.org | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/apache2/files/common/etc/apache2/sites-available/www.debian.org b/modules/apache2/files/common/etc/apache2/sites-available/www.debian.org index fbde2d2f4..400f6cc21 100644 --- a/modules/apache2/files/common/etc/apache2/sites-available/www.debian.org +++ b/modules/apache2/files/common/etc/apache2/sites-available/www.debian.org @@ -171,4 +171,12 @@ # Offer a Redirect to DSA without knowing year #474730 RewriteMap dsa txt:/srv/www.debian.org/www/security/map-dsa.txt RewriteRule ^/security/dsa-(\d+)(\..*)? /security/${dsa:$1}$2 [R=301] + +# Compatibility after SGML -> DocBook +# Debian Reference #624239 + RewriteMap reference txt:/srv/www.debian.org/www/doc/map-reference.txt + RewriteRule ^/doc/manuals/reference/ch-support(.*) /support$1 [R=301] + RewriteRule ^/doc/manuals/reference/ch-(.+)(\..*) /doc/manuals/reference/${reference:$1}$2 [R=301] + RewriteRule ^/doc/manuals/reference/ap-appendix(.*) /doc/manuals/reference/apa$1 [R=301] + RewriteRule ^/doc/manuals/reference/footnotes(.*) /doc/manuals/reference/index$1 [R=301] -- 2.20.1