How do I force SSL / HTTPS on my domain or site

To force SSL connections to a site, you need use the cPanel File Manager to add or edit the .htaccess file for the folder containing the site.

You need to ensure that you show hidden files (dotfiles) when opening the File Manager.

Add the following at the top of the file:


RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]



Clear your browser cache and re-test.

When viewing the site, your browser should now automatically load over HTTPS.
 
  • force ssl, https, domain ssl, free ssl
  • 30 Kasutajad peavad seda kasulikuks
Kas see vastus oli kasulik?

Seotud artiklid

How do I get an SSL certificate for my domain?

Powered by Lets Encrypt, Smart customers can apply a FREE SSL certificate to all domains under...

How to change domain nameserver of my domain?

Once You have placed order, you need to point your domain to our nameserver. You will receive...

403 Error and its solutions

What is 403 Forbidden Error? Before we dig deeper and try to fix the 403 Forbidden Error, let’s...

Change CPanle Password

To change CPanle Password :Login to your CPanelClick on top right username dropdown buttonClick...

Create Email Account

To create email account:Login to CPanelClick on Email AccountsAdd Email Account Enter name you...

Powered by WHMCompleteSolution