Start a conversation

How to Force HTTPS on all pages on your website

How to Force HTTPS on all pages on your website


You can force your website to require an HTTPS connection by adding the following lines to your websites .htaccess file in your website's root:


RewriteEngine On

RewriteCond %{HTTPS} off

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



The .htaccess file should be located in your website's root folder. If there isn't a .htaccess file,  you may create it. You may use FTP or cPanel's built-in File Manager.




Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Seth  

  2. Posted
  3. Updated

Comments