United States - English

Choose your Country/Region

  • whatsapp: 00201117719900
cart icon 0
cart icon 0

How to force SSL with .htaccess Print

  • 0

You can force an HTTPS connection on your website by adding these rules in your website's .htaccess file:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
 
The .htaccess file needs to be located inside the site's document root folder. If your website is in a subfolder, then the .htaccess should be placed in the corresponding subfolder.

You can create or edit the .htaccess file either via FTP, or using the File Manager available in cPanel.

 

 

 


Was this answer helpful?
Related Articles
What are the account resource limits?

  These are the resources that each cPanel account is limited to. These limits are in place...

Do you offer free SSL certificates?

We currently utilize AutoSSL from cPanel, this automatically installs free SSL certificates on...

Do you have Softaculous?

Yes, Softaculous is included with each Shared and Reseller hosting plan.Softaculous has over 300...

Do you take backups?

Yes, we utilize JetBackup which is included for free with all of our Shared and Reseller Hosting...

Do you use LiteSpeed web server?

Yes, all servers are running the latest enterprise version of LiteSpeed web server.LiteSpeed...

Back
Rate Your Experience