How do I force my website to use SSL certificate?

By default, after SSL certificate installation, your website will be loading on the Internet via both http:// and https:// protocols. You can program and force your website to always use the SSL certificate, so it will always load via the https:// protocol. Usually, it is done by inserting the following lines in your .htaccess file:

==========

RewriteEngine On

RewriteCond %{HTTPS} off

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

==========

If you don't have the .htaccess file under your account, simply create the text file and name it .htaccess.

Please keep in mind, that if you are using Content Management Systems, such as WordPress, Joomla, Drupal or others..., you must use instructions from your program developer, instead of inserting the above code. For example:

WordPress - SSL Instructions

Joomla - SSL Instructions

Drupal - SSL Instructions

Other Programs - please review your program documentation, or contact your program support

Was this answer helpful?

 Print this Article

Also Read

My site is down! Email is not working! I can't access cPanel!

Please do not panic! Sometimes your IP address  may become blocked in our firewall and therefore...

How to add a SSL Certificate to my website?

SKGOLD Hosting provides Free AutoSSL certificate. It is automaticly activated in your cPanel...