Force SSL with .htaccess Print

  • 38

Force HTTPS connections on your website by adding rules in your website's .htaccess file.

The .htaccess file can be edited by using FTP or File Manager in your cPanel.

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]


Was this answer helpful?

« Back