Changing domain

I want to change my domain from domain A to domain B but immediately use domain A for another purpose eg an e-commerce store.

Does anyone know how best to do this?

I use Ghost pro

You’re going to need to edit your DNS at whatever company hosts your DNS (that’s probably but not necessarily your domain registrar). You’ll point A to the new address, and you’ll point B to the Ghost address. Then you’ll go into the Ghost Pro admin link (from /ghost) and tell it about your new custom domain. (<-- This one sentence is the only thing that has anything to do with Ghost. :) )

You can improve the odds of things changing quickly by going into your DNS host’s panel right now and setting the time-to-live (TTL) to something short, like five minutes. If it’s set to several hours, that means that the changes you make can take several hours to show up, because DNS gets cached in lots of places. So I’d change all the TTLs first, then wait about twice the longest of the original TTL values before making any changes, to improve the odds of all changes going through in five minutes.

(Once you’ve got everything perfect, then you turn the TTL time back up so that your website visitors aren’t waiting for a fresh lookup so often. But short TTLs make it much easier to get DNS changes done without a bunch of time spent wondering if you’ve made a mistake or are just waiting on propagation.)

Don’t forget to check for any mail settings on any domains you’re going to change, before you make any DNS changes. If you have MX records, you’re probably OK, just don’t change them. If you don’t have MX records but are receiving email at an address for that domain, you’re currently relying on the A or CNAME record to get that mail delivered, and you’ll break your email when you change those values. (If you don’t have email to anyone@yourdomain.tld, then you can ignore this.)

Cathy since you know this stuff so well. I’ve just purchased a new domain. I want to swap over to that one for my site but still have the old domain also take you to the new domain. All hosted at cloudflare.

Are you on Ghost Pro, JD?

I would set up Ghost Pro for whatever you’re thinking is your ‘main’ domain, following their regular Cloudflare directions:

Then I’d also add this, for the ‘other’ domain:
Redirect one domain to another · Cloudflare Fundamentals docs