Browse Source

Update .htaccess

force visitors of site to always use HTTPS
pull/603/head
Dad 2 years ago
committed by GitHub
parent
commit
46ed76c168
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      .htaccess

+ 6
- 1
.htaccess View File

@ -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>

Loading…
Cancel
Save