#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2008
    Posts
    57
    Rep Power
    16

    What's with: "Do you want to view only webpage content that was securely delivered?"


    What's with: "Do you want to view only the webpage content that was securely delivered?" dialog box, that goes on to say:
    "This web page contains content that will not be delivered using a secure https connection, which could compromise security for the entire webpage".

    I have a valid SSL, yet when the webpage is viewed, with https at the beginning of the url, images are missing, etc., but when viewed, with http at the beginning of the url, the page looks as it was designed to look.

    What's the remedy?
  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,643
    Rep Power
    4248
    That's because you have absolute image links like:
    <img src="http://yourdomain.com/images/image.gif">
    in your HTML. You probably have the same deal going with <script>, <stylesheet> and <a href=> tags as well.

    Therefore, when you're requesting a https:// page, the browser will see that it needs to switch to http to fetch some of the resources on the page and throw up that warning message.

    What you should do is set up your images and hrefs without the domain name and protocol, like this:
    <img src="/images/image.gif">

    That way the browser will just use http:// or https:// to fetch the images, depending on whether you're viewing the http or https page. Do the same thing with your other script, stylesheet and a tags as well.
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo

IMN logo majestic logo threadwatch logo seochat tools logo