summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-02-02 08:49:05 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2017-02-02 08:49:05 +0000
commit86f6558c9be2c3a437d9971c789777f1fcaffc07 (patch)
treeeead4dd97608db3f33fec45ae09931a93ed44799
parentHTTPS redirect should be 301 (diff)
downloadgentoobrowse-86f6558c9be2c3a437d9971c789777f1fcaffc07.tar.bz2
gentoobrowse-86f6558c9be2c3a437d9971c789777f1fcaffc07.tar.xz
gentoobrowse-86f6558c9be2c3a437d9971c789777f1fcaffc07.zip
Only redirect to HTTPS in production
-rw-r--r--gentoobrowse/.htaccess1
1 files changed, 1 insertions, 0 deletions
diff --git a/gentoobrowse/.htaccess b/gentoobrowse/.htaccess
index 9b5f053..d300ea2 100644
--- a/gentoobrowse/.htaccess
+++ b/gentoobrowse/.htaccess
@@ -3,6 +3,7 @@
</Files>
RewriteEngine on
RewriteCond %{HTTPS} off
+RewriteCond %{SERVER_NAME} randomdan.homeip.net$
RewriteRule (.*) https://%{SERVER_NAME}/$1 [R=301,L]
RewriteCond %{REQUEST_URI} ^/package/(.*)