Knowledgebase
Knowledgebase:
How can I add an SSL certificate to my site?
Posted by Adam G., Last modified by Adam G. on 28 December 2018 02:47 AM
Adding an SSL certificate is easy! First, we need to generate a certificate
To do that, follow these steps

  1. login to cPanel
  2. Locate the "SSL/TLS Status" button, located under Security
  3. Once you are in the "SSL/TLS Status" screen, simply press "Run AutoSSL". This will begin the process of generating a browser-trusted certificate for the domains on your account.

Now that you have generated a certificate, you need to instruct the server to redirect requests to HTTPS. To do that, follow these steps.


  1. Return to the main screen of cPanel and open the "File Manager"
  2. From the file manager, locate and enter the directory that contains your website. For this example, I'll be using "b1nzy.party".
  3. To instruct the server to redirect visitors, we'll be using a file called ".htaccess". Think of it as a set of rules for the server to follow when visitors try to go to your site.
    However, because this file starts with a ".", you can't see it by default. To change that, first select "Settings" in the top-right corner of the file manager.
  4. Check the box labelled "Show Hidden Files (dotfiles)", and press "Save" at the bottom.

    Your site may already contain a ".htaccess" file (like mine in the screenshot below), and it will now be visible. If it does, please skip to step 6. If it does not, follow this step.
  5. Press "New" in the top left, and enter ".htaccess" as the file name. Then press "Create New File".
  6. Edit the ".htaccess" file by clicking on it, then pressing "Edit" at the top.
  7. In the window that opens, copy and paste the following text:
    RewriteEngine On

    RewriteCond %{HTTPS} !=on

    RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
  8. Press "Save Changes" in the top right, then "Close"

Thats It! Visitors to your site will now automatically be redirected to HTTPS!
(2 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).