Canonical URL always HTTP


#1

Hey folks!

I noticed that Ghost for some reason sets the canonical url to http on all my posts. I noticed that this issue had already come up on GitHub and I was wondering if someone could share with me how you override this.


#2

Hi @svikashk,

Ghost generates the canonical URL from the one set in your config. Assuming you’re installed with Ghost CLI you can use ghost config url <url here> and ghost restart to change your config.

Alternatively, edit the config.production.json file and restart Ghost.


#3

Worked like a charm. Thanks a bunch, @Hannah. :slight_smile:


#4

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