After some pretty painful days, I managed to put Cloakist's new Ghost blog at the subdirectory https://cloak.ist/blog instead of having to put it at a subdomain like blog.cloak.ist.
(Thanks to this post from @Mathias458 for giving me a headstart.)
I wanted to do this because:
- From what I read it's muuuuch better for SEO to build up value in my root domain.
- Ghost is a really great tool for blogging and will keep me writing more than a less user-friendly tool.
I find it really weird that there's no easy way to do this, given what seems like a very clear problem. (Someone build it?)
Anyway -- key steps are:
- Create a Ghost $5/m droplet with DigitalOcean
- Put it at a subdomain to start off with
- Change the Ghost blog URL to subdomain.rootdomain.com/blog
- Set up a Cloudflare worker to show the subdomain content at rootdomain.com/blog, and change all URLs from subdomain to root domain
- Use Cloudflare Firewall to restrict the subdomain to everyone apart from yourself and Cloudflare
For more details, including a far more detailed step-by-step guide and the exact commands and code to use, see my post here: