Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

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

etc
Developer
Registered: 2010-11-11
Posts: 5,053
Website GitHub

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,379
Website GitHub Mastodon

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: 9,011
Website GitHub Mastodon Twitter

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 | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

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: 5,053
Website GitHub

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: 5,053
Website GitHub

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

#21 2019-09-14 05:08:08

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

Re: Site images not showing up with https

All looks OK from here but there seems to be a problem in the way you are calling the images. This is from your first page: http://www.servisracunara.co//images/189.jpg". Note the the double slash.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB