How to force SSL with .htaccess? To force the HTTPS connection on your website, add the following lines inside the website’s .htaccess file: RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] Share: Related Articles MediaWiki Installation via Softaculous How to Enable SSH/Shell Access in cPanel phpMyAdmin Installation Magento Softaculous Installation Install Drupal via Softaculous