summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gentoobrowse/.htaccess3
1 files changed, 3 insertions, 0 deletions
diff --git a/gentoobrowse/.htaccess b/gentoobrowse/.htaccess
index ecad5b5..5d8d9ad 100644
--- a/gentoobrowse/.htaccess
+++ b/gentoobrowse/.htaccess
@@ -2,6 +2,9 @@
sethandler fcgid-script
</Files>
RewriteEngine on
+RewriteCond %{HTTPS} off
+RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L]
+
RewriteCond %{REQUEST_URI} ^/package/(.*)
RewriteRule ^(.*) /packages/%1 [R=301,L]