diff options
author | wiserweb <wiserweb@users.noreply.github.com> | 2016-12-04 13:11:52 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-04 13:11:52 -0500 |
commit | 3e88603a4e312122b082c4a4b6d3a939fc8f4706 (patch) | |
tree | 96953e1fb48cd2edc49366e5eb0e97aaa362d8ca | |
parent | a162489563d3db27bfc7597f5204841715d47fcc (diff) |
Update .htaccess
Add Apache .htaccess directives to force HTTPS with user friendly documentation.
-rw-r--r-- | .htaccess | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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> |