ServerName packages.qa.debian.org ServerAdmin owner@packages.qa.debian.org DocumentRoot /org/packages.qa.debian.org/www/web ErrorLog /var/log/apache/packages.qa.debian.org-error.log CustomLog /var/log/apache/packages.qa.debian.org-access.log combined # All our html pages are UTF-8 AddType "text/html; charset=UTF-8" html ScriptAlias /cgi-bin /org/packages.qa.debian.org/www/cgi-bin ErrorDocument 404 /cgi-bin/error404.cgi RewriteEngine on RewriteRule ^/$ /common/index.html [L,R] RewriteRule ^/lib([^/])([^/]+)$ /lib$1/lib$1$2.html [L,R] RewriteRule ^/([^/])([^/]+)$ /$1/$1$2.html [L,R] RewriteCond %{QUERY_STRING} ^src=lib(.)(.*)$ RewriteRule ^/common/index.html$ /lib%1/lib%1%2.html? [L,R,NE] RewriteCond %{QUERY_STRING} ^src=(.)(.*)$ RewriteRule ^/common/index.html$ /%1/%1%2.html? [L,R,NE]