PDA

View Full Version : non secures items in secure pages


webfarm
11-01-2006, 08:24 PM
The problem is that when there is a secure cert path in the URL and you load pages that have references or calls to http:// pages Internet Explorer grumbles about non-secure items in the page (The error warning doesn't appear in FireFox tho).

This shows up when you have an SSL path specified in the shopping cart, when you leave the shopping cart the secure path isn't dropped from the URL. For example it someone clicks on continue shopping from the checkout and then visits a page with items loaded from another site or an absolute references IE spits out it warning.

I have put a fix in place using .htaccess:
RewriteEngine On
Options +FollowSymlinks
RewriteBase /

#Rewrite Rule for secure DOMAIN.NAME
RewriteCond %{HTTP_HOST} SECURE.SERVER.NAME
RewriteCond %{REQUEST_URI} index.php
RewriteRule .* http://www.DOMAIN.NAME/$1


While this fixes the problem by rewriting the URL for any requests out side of the shopping folder I am not sure if it will cause any problems with the site.
Any ideas on a better way to fix the problem or anyone know if this will cause any problems on a soho site?

Karen Mac
11-02-2006, 01:33 PM
Web,

Without going into real technical detail, when you are browsing and that pop up comes up, click the NO, and then look at the page and see what PICTURE or link doesnt show up. Chances are its a credit card logo that you have linked to another site, or a pop up for something. If you are pulling in a banner or something from another site, consider atually downloading their banner, and then having the link open in another window. That usually fixes it for me. Credit card logos in the navigation or footer area sometimes do that too, or your ssl logo. I stick with just putting those on the bottom of my home page rather than every page.

Karen