How To Force HTTPS (SSL/TLS) On Your cPanel Domains

Nowadays HTTPS access to a website has become almost compulsory in order to meet secuirty requirements.

The good news is that Farbyte's cPanel hosting gives you FREE Comodo SSL/TLS HTTPS certificate to secure every domain, & sub-domain that you host with us.

However, by default this will allow website visitors to access both the HTTP & HTTPS versions of every page on your website.

To force the use of HTTP only, you should place the following Apache rules in the .htaccess file located in the document root of your domain:


RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]


The above rules will allow HTTP access to 2 URL paths, which are required for cPanel and free SSL (HTTPS) to function, whilst ensuring HTTPS is used for all other URLs for the domain.

  • cpanel, ssl, https
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

What is CGI?

CGI stands for Common Gateway Interface. It's used to provide interactivity and turn static pages...

Can I use streaming video / audio?

We support progressive media streaming. You can embed it into your site using hyperlinks. We...

Can I change my username?

Unfortunately, our system does not allow a change of username. The reason is because the system...

How long does it take for an account to be setup?

Farbyte web hosting accounts are setup the instant your payment is processed (normally instantly)...

Do you support Telnet to your servers?

We do not offer Telnet access for shared hosting accounts for security and stability reasons....