Redirects /doc/manuals/ to /doc/
authorIain R. Learmonth <irl@debian.org>
Sun, 24 Jan 2016 16:15:34 +0000 (16:15 +0000)
committerPeter Palfrader <peter@palfrader.org>
Sun, 24 Jan 2016 16:19:02 +0000 (17:19 +0100)
The /doc/manuals/ folder contains manuals that are built as part of the
webwml process, but does not contain an index file. /doc/ is the logical
index file for this, so redirect to that to avoid just providing an
Apache index listing. (Fixes: #694927)

Signed-off-by: Peter Palfrader <peter@palfrader.org>
modules/roles/templates/apache-www.debian.org.erb

index b83d602..7624059 100644 (file)
 # Canonical place for manuals under /doc/manuals/
    RewriteCond %{DOCUMENT_ROOT}/doc/manuals/$1 -d
    RewriteRule ^/doc/([^/]+)/?(.*)? /doc/manuals/$1/$2 [L,R=301]
+   RewriteRule ^/doc/manuals/?$ /doc/ [L,R=301]
 
 # Relocation of blends pages
    RewriteRule ^/devel/hamradio(.*)$ /blends/hamradio$1 [R=301,L]