Changing the URL


#1

Hi folks :wave:

What’s the correct way to change the installed URL of Ghost? I have just installed it at Digital Ocean, and had to use the IP to get it to set up correctly, and now I’d like to change the URL. Is there an easy way to do this either in Terminal or via editing a file and FTPing it?

Thanks in advance.


#2

Run

ghost config url https://yourdomain.com

:slight_smile:


#3

What does http://142.93.46.153 bring up for you?


#4
  1. ghost config url https://yourdomain.com
  2. ghost setup nginx ssl (optional, but recommended)
  3. ghost restart for it to take affect.

#5

I had the exact same issue.

Not only did I want to change from old.url to new.url - I also wanted a 301 permanent redirect so as to not lose any SEO juice.

I got answers on this forum and on DigitalOcean - and I documented the full walkthru here:

Hope this helps.


#6

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