Blog

SSL is not working even if you auto renew your SSL in Cpanel. Try Forced SSL.

In the year 2021, just to install SSL is not enough. It is even more important that your site is served securely with proper SSL encrypted connection for security, Accessibility or PCI compliances.
So you need to force HTTPS with the help of .htaccess. Here are the step to preform the process

1) Open your cPanesl or FTP client.
2) Open “public_html”


3) Go to public_html of your file manager
4) You need to put some codes in “.htaccess”. Usually “.htaccess” is hidden if it is not you can skip to step 6.
To show all hidden file click on setting of your cpanel.


5) In the preference box tick “Show Hidden Files (dotfiles)”

6)Now you should be able to see “.htaccess” in your file manager. Now Click on edit and make the following changes.
Add the codes given Below in .htaccess and click on “Save”

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]

 

 

 

You might have seen your site previously like this

Now your site is seen like this

Well Done!! Now your site is served with the forced HTTPS. Please make sure all your links are converted to https to be see the impact. Now you are ready to Go!!

Bes of luck.
Fell free to comment.

jaminrai

Recent Posts

Skype Closes Its Doors After 20 Years: A Look Back and the Apps That Faded with It

After 20 years of transforming global communication, Skype has officially ceased operations. Microsoft, which purchased…

4 months ago

The Duck and the Tortoise: A Tale of Patience and Teamwork

In a serene forest by the edge of a sparkling lake, there lived a cheerful…

5 months ago

10 Smart Strategies for a Secure and Enjoyable Retirement

Retiring comfortably is a goal many aspire to achieve, and with the right strategies, it’s…

5 months ago

Troubleshooting a Slow Computer

Is your computer running frustratingly slow? Don't worry; you're not alone in facing this common…

5 months ago

The Clever Fox and the Greedy Crow

Once, in a sunny forest, Fox and Crow were friends. One day, Crow found a…

5 months ago