How to force SSL with .htaccess

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

 

 

 

 

The .htaccess file needs to be located inside the site's document root folder. If your website is in a sub folder, then the .htaccess should be placed in the corresponding sub folder. You can create or edit the .htaccess file either via FTP, or using with the File Manager available in cPanel.

  • 4 Users Found This Useful
Was this answer helpful?

Related Articles

Greenix360 Exploit Scanning

The active scanning of uploaded files can help prevent exploitation of an account by malware by...

Greenix360 Firewall

Straight-forward SPI iptables firewall script Daemon process that checks for login...

Greenix360 Mail Scanning Protection

Greenix360 includes extensive use of mailscanning and Exim.  Greenix Hosting clients enjoy...