Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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,690
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,690
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,398
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