Browse code

Now the .htaccess file automatically converts http to https.

Apollia authored on06/15/2018 06:09:43
Showing1 changed files
... ...
@@ -4,6 +4,9 @@
4 4
     RewriteEngine On
5 5
     #RewriteBase /path/to/gitlist/
6 6
 
7
+RewriteCond %{HTTPS} !=on
8
+RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
9
+
7 10
     RewriteCond %{REQUEST_FILENAME} !-f
8 11
     RewriteCond %{REQUEST_FILENAME} !-d
9 12
     RewriteRule ^(.*)$ index.php [L,NC]