How to remove url site from src img?


#1

I’ve use casper theme, i want to remove url for example :
srcset=“http://example.com/content/images/size/w300/2019/01/tes-1.jpg 300w
to
srcset=”/content/images/size/w300/2019/01/tes-1.jpg 300w

because i have problem with content mixed.
and i don’t have access to edit nginx

Any solution?
Thanks!


#2

Maybe just edit your config file ( config.production.json) to move your website name to https (or run ghost config url)? This should solve the mixed content issue.


#3

I’m using Let’s Encrypt and not working. Redirected to 127.0.0.1 :sob:


#4

This is definitely a misconfiguration issue. Fixing the assets that are output will only fix one symptom, not the root cause, and there may be other symptoms


#5

As @hannah said, you have to reconfigure your URL. Login to your backend via SSH, type ghost config url https://yourdomain.com and restart Ghost. Make sure to re-upload the images afterwards, so Ghost replaces the URL for the image, too.


#6

Thanks for the reply,

Solved by using Cloudflare as my SSL Certified. Then change url to https.


closed #7

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.