add simple option for HTTPS in .htaccess

people have it easier to just uncomment 2 lines if they want such an important feature
This commit is contained in:
Christian González 2016-01-30 23:21:03 +01:00
parent aefbf93541
commit 2ca9d011fe
1 changed files with 4 additions and 0 deletions

View File

@ -30,5 +30,9 @@ Deny from all
RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?pagename=$1 [E=REMOTE_USER:%{HTTP:Authorization},L,QSA] RewriteRule ^(.*)$ index.php?pagename=$1 [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
# If you want to restrict access to your Friendica site to HTTPS only,
# uncommment the following lines
RewriteCond %{HTTPS} !=on
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
</IfModule> </IfModule>