You can connect any domain or subdomain that you own to your Ghost(Pro) blog by adding a
CNAME record to your domain's DNS records. You can only add one custom domain to your account, but you can redirect as many domains as you like to your custom domain so that multiple domains work. The following guide explains how to setup your custom domain with your Ghost(Pro) publication.
Using domain names
Domain names are purchased from a domain name registrar. Most domain registrars allow you to manage the DNS records for your domain name through their control panel. Some registrars offer more management options than others so if your registrar has a limited control panel, it is possible to move the management of your DNS records to a separate DNS management service.
There are two different ways you can use your domain name with Ghost(Pro):
1. Use a subdomain
Once you own a domain name, you can create as many subdomains for that domain as you like. An example subdomain might be www.my-ghost-blog.com or blog.my-ghost-blog.com. This is the easiest way to setup a custom domain for your blog.
For instructions on how to use a subdomain, please see How to setup a subdomain on this guide for details.
2. Use a root domain
If you prefer, you can use my-ghost-blog.com as your custom domain without a subdomain. This is a bit trickier to setup than a subdomain and has some caveats.
In order to use a root domain directly, the service you use to manage your DNS records (usually your domain registrar) must support CNAME records at the root level. This is a non-standard feature of DNS records, but more and more companies are adding support.
For instructions on how to use a root domain, please see How to setup a root domain on this guide for details.
How to setup a subdomain
www is a subdomain and is a special case of your root domain. Configuring
www to point to your Ghost blog will automatically make the root domain work.
To configure your subdomain to point to your ghost blog, you’ll need to add a CNAME record to your DNS records. The CNAME record will need to look something like this:
Note: Do NOT include the
http:// within the target field when entering your blog URL.
How to setup a root domain
Some services which support configuring CNAMEs for the root domain:
The majority of these services use the symbol
@ to represent the root domain when configuring a CNAME record. For example, to configure your root domain using most services, the CNAME record will look like this:
If your domain is registered with a service that does not support root level CNAMEs, don’t worry, who you purchase your domain from (your registrar) and who manages your DNS can be different. We recommend moving your DNS to be managed by Cloudflare. For detailed instructions, see our guide on How to setup a root domain domain with Cloudflare.
Set the Custom Domain on Ghost.org
Now that you’ve got your CNAME record setup, you will need to associate the domain name with a Ghost blog in your account. To do this, you can follow these simple steps:
- Log into Ghost.org
- Click on the More dropdown menu next the blog you want to set a custom domain for.
- Select Domain from the menu
- Click inside the Custom Domain field to add a domain
- Enter your domain name in the appropriate settings box
— Make sure you enter your domain exactly as you set it up above.
— If you configured a subdomain, enter www.yourdomain.com.
— If you configured a root domain, enter yourblog.com.
- Click Save.