The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SSL site - Images not displayed by Internet Explorer

Discussion in 'General Discussion' started by tisha, Jul 5, 2006.

  1. tisha

    tisha Member

    Joined:
    Jul 11, 2003
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    Have an interesting issue here. After installing the SSL cert for a domain, the secure site is coming up fine on all the browsers, except for IE. Internet Explorer is not displaying the images on the site, whereas firefox, opera et. al has no problems whatsoever....

    Any thoughts, please ? :rolleyes:

    Please check out https://www.iptoto.com in IE and Firefox, and compare them.
     
  2. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    Change all the src properties for the <img> tags to full https URLs instead of relative URLs.
     
  3. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    I would have thought relative URLs would work just fine???
     
  4. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
  5. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    They might, if formed correctly.

    However, relative URLs for anything (images, css files, js files) within a secure page may be, and quite often are, interpretted by a browser as being insecure URLs. This can often cause the browser to inform the user that the page contains both secure and insecure items, which is not a good thing.

    The only reliable way of serving a secure page such that everything displays correctly and the user does not get a 'secure and insecure items' warning is to use full URLs for everything.
     
  6. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    There's considerable merit to your suggestion of always using full paths and it's a nice easy solution.

    However, use of full paths everywhere can make it MUCH harder to move the site around and test it. It's always going to be sufficient to use relative paths for image files (promise!), although I agree some testing might be needed for CSS and JS files. In the past I've found that I can get pages to work well in all browsers with https by playing around with the paths in the page, although there's always a possible future where that won't work and I'd need to fall back to your method.
     
Loading...

Share This Page