From: David Prévot Date: Wed, 27 Apr 2011 22:40:21 +0000 (-0400) Subject: Handle links to translated 404 pages X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=69ebacf9c3c118badeffa851868a1a41208c3862;p=mirror%2Fdsa-puppet.git Handle links to translated 404 pages 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 cb3c073f1..14c54594c 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 @@ -116,6 +116,8 @@ # Custom Error ErrorDocument 404 /devel/website/errors/404 + RewriteCond %{DOCUMENT_ROOT}/devel/website/errors/404.$2.html -f + RewriteRule ^/(?!devel/website/errors/)(.*/)?404\.(.+)\.html$ /devel/website/errors/404.$2.html [L] # the joys of backwards compatibility RedirectPermanent /cgi-bin/cvsweb http://cvs.debian.org