How to remove url site from src img?

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!

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.

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

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

https://docs.ghost.org/faq/change-configured-site-url/

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.

Thanks for the reply,

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

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