In this Article you will learn how to install SSL Certificate in few steps.

 

Follow Below Steps :

Step : 1


First, you need to login to cPanel (Guide Link).

 

Step : 2


Now you have to search the “  Lets Encrypt ”  into the search bar and click on the ” Let’s Encrypt ” option.

 

 

Step : 3


Now click on the ” issue ” Option according to your domain in which you want to install SSL.

 

 

Step : 4


Now click on the ” issue ” Button once again.

 

 

  • The SSL certificate is now installed onto the domain

Step : 5


  • Now again go back to the main page of cPanel
  • Search “File Manager” in the search bar.
  • Click on the File Manager.

  • Now, Click on “public_html” folder.

Step : 6


Edit Your .htaccess File

  • If you don’t find .htaccess files then follow this to unhide it –
    • Go to Settings present at the top right corner.
    • Go to Settings
    • You will get a popup soon.
    • Here, you need to tick “Show Hidden Files (dotfiles)” option.
    • Then, click on the “Save” button.Show hidden files
    • Done! You will able to see .htaccess file.
  • Now, right click on .htaccess file.
  • Then, click on Edit button.

Edit .htaccess file

    • If you get a popup then again click on the “Edit” button.
    • Click on Edit button
    • You will now redirected to a next page.
  • Copy the following code mentioned below :
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]
  • Paste the code at the top of .htaccess file.
  • Then, click on “Save Changes” at upper right corner.

Click on Save Changes

  • You will now get a success message at lower right corner like this :

Success

  • Done!
  • Now, you can click on the “Close” button at the upper right or can simply close the tab.
  • At last, check that the redirection is working fine.
  • All set, you are good to go.

 


Thanks For Reading this article if still having any issues kindly ping us over chat.

 

 

Leave a Reply

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