How to force SSL with .htaccess? Posted 14 April 2021 By admin Under Web Hosting 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]
Leave A Comment?