osCmax v2.5 User Manual
Results 1 to 3 of 3

Problem with CSS images when referenced from HTTPs

This is a discussion on Problem with CSS images when referenced from HTTPs within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; Hello, looking for some help with images referenced within the stylesheet. I have no problems with these from non secure ...

      
  1. #1
    Lurker
    Join Date
    Aug 2005
    Posts
    1
    Rep Power
    0


    Default Problem with CSS images when referenced from HTTPs

    Hello,

    looking for some help with images referenced within the stylesheet. I have no problems with these from non secure locations within the site only from https. The stylesheet loads fine and displays everything correctly except for the images.

    example:

    body {
    margin: 0;
    padding: 0;
    background: url(/img/background_tile.gif) top left repeat-x;
    text-align: center;
    background-color: #fff;
    }

    I have tried to remove the first backslash before the directory (i.e. "img/background_tile.gif") but find that the image does not load any where at that point.

    Any clues?

    Thanks,

    Joe

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: Problem with CSS images when referenced from HTTPs

    Without knowing the path structure and setup of ssl, there is not much help anyone can provide. Most likely you just need to tweak the path so that it works for both ssl and non-ssl images.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    Lurker
    Join Date
    Feb 2007
    Posts
    1
    Rep Power
    0


    Default Re: Problem with CSS images when referenced from HTTPs

    I find that all HTTPS Problems with images disappear when you reference the complete path. https://www.yourname.com/images/yourimage.gif Same thing goes for flash or external scripts. Also make sure you are using https in your path, and that you are using the correct name for your cert https://www.yourname.com or https://yourname.com depending on how your cert reads. I think there is a way to have both work, but my workaround is to 301 redirect all traffic to the right name.

Similar Threads

  1. Broken images in https
    By brewer1st in forum osCmax v2 Installation issues
    Replies: 3
    Last Post: 04-18-2006, 04:46 AM
  2. HTTPS SSL images missing also weird links?
    By doug in forum osCommerce 2.2 Installation Help
    Replies: 7
    Last Post: 05-12-2005, 10:06 AM
  3. https-problem
    By springbank in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 01-05-2004, 08:31 AM
  4. Losing images in admin with https
    By ozstar in forum osCommerce 2.2 Modification Help
    Replies: 7
    Last Post: 03-16-2003, 08:14 PM
  5. https and images-Admin Tool Help Plz
    By jouster in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 01-24-2003, 06:26 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •