Serious production issue

I changed my ghost url from to and DNS error came. I reverted back my ghost url to but faced with the following error

I am using a redirect via page name rule of cloudfare to redirect all pages of to which was and is working fine before and after these changes

Neither can I login to my Ghost panel. What could be wrong?

Did you use the Ghost CLI to run “ghost setup” for changing the URL details on your already configured site?

The URL appears to require an explicit match.

While you can manually handle this by editing your config.production.json file as well as the Nginx site configuration … I think there may still be some items in the Ghost Database needing changed (?).

I’ve found I have the best luck making these kinds of changes when using the Ghost CLI’s “ghost setup” command to rebuild the config.