How to fix comodo trust logo error/alert box
If you follow the instructions on setting up your comodo trust logo using their "Implementing a Corner of TrustLogo™ into your Website," you will be in for a shock! The trust logo causes an alert box to appear in internet explorer the very first time you move from http to https:
"This page contains both secure and nonsecure items. Do you want to display the nonsecure items"
Wait a minute! After installing the cert and setting up the trust logo, now my website is throwing errors? Yes, it's because the trust logo is set up to use the url you give it for the location of secure_site.gif. When you move from http to https, the image is still being pulled from the non-secure side. The URL for the image I used is: http://www.example.com/images/secure_site.gif
I used their wizard to set it up and this is what it told me to use:
<script language="JavaScript" type="text/javascript">
COT("http://www.example.com/images/secure_site.gif", "SC2", "none");
</script>
As you can see, no matter whether you are in http or https, the image will always be pulled from the http side.
Here is how you fix it:
<script language="JavaScript" type="text/javascript">
COT("images/secure_site.gif", "SC2", "none");
</script>
Instead of using the URL in the script, just use the relative path: images/secure_site.gif
This way, the alert will not be shown.
Categories:
New Articles: