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:
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:
For more details, including a far more detailed step-by-step guide and the exact commands and code to use, see my post here:
https://cloak.ist/blog/how-to-put-a-ghost-blog-at-a-subdirectory-using-cloudflare-workers/
Oh, very cool!
Any way you can do this on a hosted plan?
You mean hosted by Ghost? Hmm, I am not sure. I believe in theory it should be possible. You could just try following the guide I wrote for the Cloudflare Workers part and making some adaptations.
Does the hosted plan allow you to change blog URL from subdomain.yoursite.com to subdomain.yoursite.com/blog? If not, you'd need to adjust my Cloudflare Worker script so that:
These are relatively easy tweaks (I could give tips if you can't work it out). There might however be something else I'm missing about why doing this on a hosted plan will be difficult. I feel like there's a reason why this article says it's difficult.
Thanks! I should probably just use the API and send posts to my new django site actually so the look stays consistent.