Textpattern CMS support forum

You are not logged in. Register | Login | Help

#11 2019-09-13 06:47:26

kimass
New Member
Registered: 2019-09-12
Posts: 8

Re: Site images not showing up with https

Url
https://www.servisracunara.co/

Thank you

Offline

#12 2019-09-13 08:16:35

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 7,320
Website

Re: Site images not showing up with https

I see all the images in your site. Can you point me to a page where the images do not load?


Yiannis
——————————
neme.org | hblack.net | LABS | State Machines | Respbublika! | NeMe @ github

Offline

#13 2019-09-13 09:13:46

etc
Developer
Registered: 2010-11-11
Posts: 3,296
Website

Re: Site images not showing up with https

You should probably replace http:// with https?:// if this rule is enabled:

RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www.)?example.com/.*$ [NC]

In my tests, regular images are loaded in FF but not logos. In Edge all image requests with referrer get txt 404 page in reply.

Edit: disabling referer in FF fixes the problem, fwiw.

Offline

#14 2019-09-13 11:21:39

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,194
Website

Re: Site images not showing up with https

etc wrote #319284:

In my tests, regular images are loaded in FF but not logos.

Same in Chrome on Android.

Offline

#15 2019-09-13 12:23:22

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 7,320
Website

Re: Site images not showing up with https

I see! Basically, txp behaves OK but images outside the db do not!

There are two options there. One would be to upload those images in the txp db and call them from there. Another one would be to link to those images directly using a non secure (http) connection, which is the recommended way of calling images.


Yiannis
——————————
neme.org | hblack.net | LABS | State Machines | Respbublika! | NeMe @ github

Offline

#16 2019-09-13 15:33:32

kimass
New Member
Registered: 2019-09-12
Posts: 8

Re: Site images not showing up with https

Main problem are header and logo images.
It is weird because I can open images this way:

https://www.servisracunara.co/img/header_bg.jpg
https://www.servisracunara.co/img/logo.jpg

but website can’t.

Also Chrome console shows 14 errors and 25 warnings – Failed to load resource: the server responded with a status of 404 () - for .png .gif

For examples menu elements:
https://www.servisracunara.co/img/menu_divider.gif

Thanks all of you

Offline

#17 2019-09-13 15:39:46

etc
Developer
Registered: 2010-11-11
Posts: 3,296
Website

Re: Site images not showing up with https

kimass wrote #319290:

Main problem are header and logo images.
It is weird because I can open images this way:

https://www.servisracunara.co/img/header_bg.jpg
https://www.servisracunara.co/img/logo.jpg

but website can’t.

I’m pretty certain it’s some referer control rule in .htaccess that prevents it from loading. Is there a .htaccess file in your /img folder?

Offline

#18 2019-09-13 15:55:26

kimass
New Member
Registered: 2019-09-12
Posts: 8

Re: Site images not showing up with https

I’ve just checked all the folders and there is no another one.

Last edited by kimass (2019-09-13 15:56:28)

Offline

#19 2019-09-13 17:30:27

kimass
New Member
Registered: 2019-09-12
Posts: 8

Re: Site images not showing up with https

I changed http in https in this line:

RewriteCond %{HTTP_REFERER} !^https://(www.)?servisracunara.co/.*$ [NC]

and it works. Does it can be solution?

Offline

#20 2019-09-13 18:24:29

etc
Developer
Registered: 2010-11-11
Posts: 3,296
Website

Re: Site images not showing up with https

kimass wrote #319294:

I changed http in https in this line:

RewriteCond %{HTTP_REFERER} !^https://(www.)?servisracunara.co/.*$ [NC]

and it works. Does it can be solution?

Yep

Offline

Board footer

Powered by FluxBB