How to force SSL (HTTPS)

If you wish to force your entire website to go through https, you can add these rules to your .htaccess file. (You can access your .htaccess file with a FTP or with the File Manager).

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$$1 [R,L]

If your site is in a subfolder, use this code: 

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} folder
RewriteRule ^(.*)$$1 [R,L]

Replace with your domain name and it will work!

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Wildcard SSL : Securing a New Subdomain

1. Log in to your cPanel account. Go to Security and SSL/TLS. 2. Generate a KEY from Security...

What is an SSL certificate?

The Secure Sockets Layer (SSL) is a commonly-used protocol for managing the...

Retrieving a copy of your SSL certificate

1. To retrieve a copy of your SSL, log into your account and click on Service. Choose the SSL...

Let's Encrypt SSL Certificate Installation

Requirements Your site, domain and subdomains must point to your hosting account. Installing...

SSL Certificate Installation in WHM

1. Log into your WHM control panel and locate the SSL/TLS section. 2. Select Install an SSL...