summaryrefslogtreecommitdiff
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
parentIgnore dev symlink (diff)
downloadmirrorsearch-4bdb24ab8df970c0f410a9c7e704858c96b085c9.tar.bz2
mirrorsearch-4bdb24ab8df970c0f410a9c7e704858c96b085c9.tar.xz
mirrorsearch-4bdb24ab8df970c0f410a9c7e704858c96b085c9.zip
Add a redirect to work as a Gentoo mirrormirrorsearch-0.1.1
-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]