Merge pull request #2305 from nerdoc/patch-1

add simple option for HTTPS in .htaccess
This commit is contained in:
Michael Vogel 2016-02-02 21:07:52 +01:00
commit c18d17e65b

View File

@ -30,5 +30,10 @@ Deny from all
RewriteCond %{REQUEST_FILENAME} !-d
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>