Different URL in redered HTML?

I have ghost successfully installed at ghost.domain .com

I have cloudfront serving the pages at www.domain .com

The problem is any links that point directly to the domain. Is there a way to have ghost render all pages/content as if the URL is www.domain .com, even though the nginx is serving it from ghost.domain.com?

This sounds like a case where you have a different admin url compared to production url. The url that you provide in the ghost config is what’s used everywhere by Ghost.

From the docs (it’s kind of the opposite problem for you):

Admin panel is incorrectly redirected

Make sure your configured URL is the one you are using to access the admin panel. You can set a separate domain for your admin panel using ghost config admin.url https://your-admin-domain.com .

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

1 Like