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.
After 20 years of transforming global communication, Skype has officially ceased operations. Microsoft, which purchased…
In a serene forest by the edge of a sparkling lake, there lived a cheerful…
Retiring comfortably is a goal many aspire to achieve, and with the right strategies, it’s…
Is your computer running frustratingly slow? Don't worry; you're not alone in facing this common…
Once, in a sunny forest, Fox and Crow were friends. One day, Crow found a…