summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-12-05 17:57:40 -0500
committerFrederic Guillot <fred@kanboard.net>2016-12-05 17:57:40 -0500
commitc4d3b3d84f017bc3ce24e02bb90e3233a1a90935 (patch)
tree1bf50fb2e9db37348e692a7c9bd39743585e57a5
parent6d2bd7383a8204a85429a88eb7ebe2a36a035455 (diff)
parent3e88603a4e312122b082c4a4b6d3a939fc8f4706 (diff)
Merge pull-request #2870
-rw-r--r--.htaccess17
1 files changed, 17 insertions, 0 deletions
diff --git a/.htaccess b/.htaccess
index 0d873f58..2125df50 100644
--- a/.htaccess
+++ b/.htaccess
@@ -6,4 +6,21 @@
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]
+
+ ############################
+ ## Uncomment the two lines below to enable force HTTPS capabilities
+ ############################
+
+ # RewriteCond %{HTTPS} !=on
+ # RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
+
+ ###########################
+ ## Notes:
+ ## The first directive will check to make sure the connection is not already HTTPS
+ ##
+ ## The second directive will redirect users from their original location, to the same location but using HTTPS.
+ ## i.e. http://www.example.com/foo/ to https://www.example.com/foo/
+ ## The leading slash is made optional so that this will work either in httpd.conf
+ ## or .htaccess context
+ ############################
</IfModule>