diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-02-02 08:49:05 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-02-02 08:49:05 +0000 |
commit | 86f6558c9be2c3a437d9971c789777f1fcaffc07 (patch) | |
tree | eead4dd97608db3f33fec45ae09931a93ed44799 | |
parent | HTTPS redirect should be 301 (diff) | |
download | gentoobrowse-86f6558c9be2c3a437d9971c789777f1fcaffc07.tar.bz2 gentoobrowse-86f6558c9be2c3a437d9971c789777f1fcaffc07.tar.xz gentoobrowse-86f6558c9be2c3a437d9971c789777f1fcaffc07.zip |
Only redirect to HTTPS in production
-rw-r--r-- | gentoobrowse/.htaccess | 1 |
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/(.*) |