Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
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
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.jpgbut 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
Offline
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