]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #2305 from nerdoc/patch-1
authorMichael Vogel <icarus@dabo.de>
Tue, 2 Feb 2016 20:07:52 +0000 (21:07 +0100)
committerMichael Vogel <icarus@dabo.de>
Tue, 2 Feb 2016 20:07:52 +0000 (21:07 +0100)
add simple option for HTTPS in .htaccess

.htaccess

index 1b63f9ad6fb2b81060f5da54cdc82277ceb7f310..d2aaa4e131ef6d901443ed94959e26e232257397 100644 (file)
--- a/.htaccess
+++ b/.htaccess
@@ -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>