Browse Source
Update .htaccess
force visitors of site to always use HTTPS
pull/603/head
Dad
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
1 deletions
-
.htaccess
|
|
|
@ -1,3 +1,8 @@ |
|
|
|
#Rewrite everything to https |
|
|
|
RewriteEngine On |
|
|
|
RewriteCond %{HTTPS} !=on |
|
|
|
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] |
|
|
|
|
|
|
|
# Don't show directory listings for URLs which map to a directory. |
|
|
|
Options -Indexes |
|
|
|
|
|
|
|
@ -132,4 +137,4 @@ DirectoryIndex index.php |
|
|
|
text/x-component \ |
|
|
|
text/xml |
|
|
|
|
|
|
|
</IfModule> |
|
|
|
</IfModule> |