How do I force my website to use SSL certificate? Print

  • 263

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?

« Back