Anyone know how to use css to change all image locations?

Discussion in 'HTML & Website Design' started by servantofgod, Nov 20, 2008.

  1. #1
    Just got an SSL, need to change all image urls to https instead of them going to http, anyone aware of how to do so?
     
    servantofgod, Nov 20, 2008 IP
  2. kashifmughal

    kashifmughal Member

    Messages:
    74
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #2
    you should use some absolute path like
    http://www.digitalpoint.com/images/sample.gif
     
    kashifmughal, Nov 20, 2008 IP
    servantofgod likes this.
  3. servantofgod

    servantofgod Peon

    Messages:
    61
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You have to forgive me, I'm pretty ignorant when it comes to css. I have no idea what you are describing. Is that something that I add to the style sheet?
     
    servantofgod, Nov 20, 2008 IP
  4. bigroddy

    bigroddy Peon

    Messages:
    78
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    This isn't something you can do with css. You aren't styling anything, you're changing where you call files from.

    Good old fashioned find and replace. Have fun.
     
    bigroddy, Nov 20, 2008 IP
  5. mcfox

    mcfox Wind Maker

    Messages:
    7,526
    Likes Received:
    716
    Best Answers:
    0
    Trophy Points:
    360
    #5
    You could do an htaccess mod rewrite from http to https.
     
    mcfox, Nov 20, 2008 IP
  6. bigroddy

    bigroddy Peon

    Messages:
    78
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    If you're using apache. IIS...no such luck.
     
    bigroddy, Nov 20, 2008 IP