Page 1 of 1

Linking to images directly

Posted: 11 May 2019, 19:25
by rtig
Hi Karl,

I would like to link to one of my images in the content folder using the html img tag (e.g. <img src="http://rtig.net/content/photoblog/fotoblog-25.jpg" alt"schliessfaecher">). However, the image does not show. Is there some kind of protection on the folder or am I doing something wrong?

It does not work on the forum either.
Image
Cheers!

Re: Linking to images directly

Posted: 12 May 2019, 01:17
by mjau-mjau
It works here, also the image you embedded in the post:
Image

Did you change something? If not, there is another likely cause: Your website is on HTTP (not secure SSL/HTTPS). If you try to embed a HTTP link on a HTTPS website, it will often be blocked by the website or the browser (depending). You cannot (at least you are not supposed to) load NON-SSL content into an SSL website, because that will make the secure SSL website insecure.

For example, for my browser to be able to load your non-SSL image, the SSL "secure" was broken:
Image
Normally, it is SSL:
Image

Re: Linking to images directly

Posted: 12 May 2019, 18:57
by rtig
Many thanks for that reply, that gives me something to try out.

It still does not show in my main browser (Opera), but it does show in Firefox. So it definitely has something to do with the https.

Re: Linking to images directly

Posted: 12 May 2019, 19:15
by rtig
Yep, that did the trick. I activated SSL on the website and now everything is working nicely! Many thanks again!

Re: Linking to images directly

Posted: 13 May 2019, 10:14
by mjau-mjau
SSL is the way to go!