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
  • 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
    Commented Dec 27, 2012 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. Commented Sep 5, 2019 at 20:59

2 Answers 2

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.

2
  • The lock symbol shows: You are connected to mysite.com, which is run by (unknown). Why this unknown? How can i change this? Commented Dec 27, 2012 at 16:06
  • If you buy an EV certificate (unknown) will be replaced with the physical address of your company. en.wikipedia.org/wiki/Extended_Validation_Certificate
    – ZippyV
    Commented Dec 27, 2012 at 18:52
0
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">

add this in header and it's working.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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