sethandler cgi-script RewriteEngine on RewriteCond %{REQUEST_URI} ^/distfiles/(.*) RewriteRule ^(.*) /download/%1 [L] RewriteCond %{REQUEST_URI} !^/mirrorsearch-cgi RewriteRule ^(.*) /mirrorsearch-cgi/\1 [L]