From: Simon Paillard Date: Tue, 3 May 2011 22:05:49 +0000 (+0200) Subject: Fix reference rewrite rule X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=5fcce80e2d29d36040636edd2432ec9092ba2ac3;p=mirror%2Fdsa-puppet.git Fix reference rewrite rule --- 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 0a099849e..1606a11d4 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 @@ -176,7 +176,7 @@ # 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/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] # New Maintainers' Guide