Solved

HTTPS not displaying images

Posted on 2006-06-13
3
335 Views
Last Modified: 2007-02-12
I recently loaded an ssl cert on my server.  When I load my pages in Mozilla using HTTP everything loads fine, but when I load through HTTPS the pages load fine, but the images all return 404 errors.  I've tried relative linking and absolute linking of the images through http://www.mywebsitename.com/; https://www.mywebsitename.com; and www.mywebsitename.com, but no luck.
Note:  Loading the page in Internet Explorer brings up a dialog stating that the page contains mixed content and asks if I want to display the non-secure items.  If yes is selected the images still don't show up.
0
Comment
Question by:IVIoonsail
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
recklez earned 500 total points
ID: 16895748
Make sure you are using relative paths for your images.

e.g.
If you have an image
<img src="http://www.mywebsitename.com/images/header.jpg" width="100" height="100" />

you should change that to
<img src="images/header.jpg" width="100" height="100" />

If you use an absolute path, even though you are loading the page from https that image is requested from http.
0
 

Author Comment

by:IVIoonsail
ID: 16896135
All of my image paths are relative from before I set up the https, so it's something else.  Although I double checked that, and even looked for anything like a <base href=url /> tag.  Any other ideas?
0
 

Author Comment

by:IVIoonsail
ID: 16897393
Solved it.  I had hotlink protection enabled for the server I was serving the image from.  I disabled it and it started serving my images to the https server from the http server.
0

Featured Post

More Than Just A Video Library

Train for your certification. Learn the latest DevOps tools. Grow your skillset to do better work.

At Linux Academy, we release new training modules every week so you'll always be up to date on the latest tech.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

687 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question