2

I just purchased SSL for my website from hostgator, so that I can add lock symbol in my website, when users visit https://www.mysite.com

For example:

SSL Certificate

Now they have installed the certificate, but I am unable to make this thing visible on my site. When I am opening the site with https:// it shows no lock symbol.

Please help me to show lock symbol and security certificate information when https:// pages open in my PHP Script.

  • 2
    "add lock symbol" Please read something about SSL to understand, what that means. Most of your question will get answered just by reading this WP article. – feeela Dec 27 '12 at 16:41
  • As the screenshot shows, you are not connected to your website domain name, but to some subdomain of hostgator.com hence you see the certificate for it and not your domain. You have to fix your DNS and/or rewriting rules. – Patrick Mevzek Sep 5 '19 at 20:59
5

You need to make sure that all resources from your page (images, scripts, css) are also loaded via https otherwise your page is not secure.

|improve this answer|||||
0
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">

add this in header and it's working.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.