From: David Prévot Date: Fri, 29 Apr 2011 02:24:31 +0000 (-0400) Subject: Handle a RewriteMap for Debian Reference X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=bd9f3343da0a9df657fe061eb84697079d1afe21;p=mirror%2Fdsa-puppet.git Handle a RewriteMap for Debian Reference The Debian Reference has been moved from SGML to DocBook. Signed-off-by: Simon Paillard --- 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]