summaryrefslogtreecommitdiff
path: root/site/.htaccess
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2018-03-10 14:45:31 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2018-03-10 14:45:31 +0000
commit4bdb24ab8df970c0f410a9c7e704858c96b085c9 (patch)
tree9a392d213f348b3351c16a9375e9f11e97833903 /site/.htaccess
parentIgnore dev symlink (diff)
downloadmirrorsearch-0.1.1.tar.bz2
mirrorsearch-0.1.1.tar.xz
mirrorsearch-0.1.1.zip
Add a redirect to work as a Gentoo mirrormirrorsearch-0.1.1
Diffstat (limited to 'site/.htaccess')
-rw-r--r--site/.htaccess2
1 files changed, 2 insertions, 0 deletions
diff --git a/site/.htaccess b/site/.htaccess
index 031be9b..67eccbc 100644
--- a/site/.htaccess
+++ b/site/.htaccess
@@ -2,6 +2,8 @@
sethandler cgi-script
</Files>
RewriteEngine on
+RewriteCond %{REQUEST_URI} ^/distfiles/(.*)
+RewriteRule ^(.*) /download/%1 [L]
RewriteCond %{REQUEST_URI} !^/mirrorsearch-cgi
RewriteRule ^(.*) /mirrorsearch-cgi/\1 [L]