htaccess force SSL/HTTPS Posted on 10. April 202010. April 2020 by btxtiger RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] Permanent 301 Temporary 302 Related posts Configure robots.txt Better usability for Nextcloud WordPress htaccess config