How to activate an SSL certificate for a website?

Steps to Activate an SSL Certificate for the site.

Note – Follow Red Rectangle Box in Image.

For Redirection, You need to add some code in a .htaccess file (that located in file manager public_html folder).


Follow the steps:

  • Login into your cPanel.
  • Then click on the ” File Manager ” option.



  • Just go under the ” Public_html ” Directory.



  • Now click on the “ Setting ” option in the right upper corner.



  • Then check the option “ Show Hidden Files (dotfiles) ” then click on the ” Save ” option.



  • Then you see the ” .htaccess  ” file under the public_html directory.



  • Now edit that file and put below code in ” .htaccess file “.  (Code Link – Click Here).
  • RewriteEngine On
    RewriteCond %{HTTPS} !on
    RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
    RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]



  • Now save that file and check your website is now Secure.  🙂



If you face any issue then leave a comment so we reply there and if work then also give your feedback.



Thank You So Much to Be with!

Leave a Reply

Your email address will not be published. Required fields are marked *