Live data from Hacker News

How to Host a Blog on a Subdirectory Instead of a Subdomain (2025)

davidma.org

11–19 of 19 posts

Re: How to Host a Blog on a Subdirectory Instead of a Subdomain (2025)

#11
post #9
post #3

Maybe should add "with Cloudflare Workers" to the headline Because hosting a blog inside a subdirectory is like the most trivial webserver thing ever

Are we not just doing static html for blogs anymore?

That doesn’t sound bloated enough. Too fast. Gonna give a user whiplash.

Re: How to Host a Blog on a Subdirectory Instead of a Subdomain (2025)

#12
post #9
post #3

Maybe should add "with Cloudflare Workers" to the headline Because hosting a blog inside a subdirectory is like the most trivial webserver thing ever

Are we not just doing static html for blogs anymore?

We could just enable auto-index and drop a bunch of .txt files into it.

Re: How to Host a Blog on a Subdirectory Instead of a Subdomain (2025)

#13
post #9

Earlier quoted context omitted.

Are we not just doing static html for blogs anymore?

That doesn’t sound bloated enough. Too fast. Gonna give a user whiplash.

.htaccess that rewrites the .txt to serve the file as an .html extension. With help from bash you then append a bootstrap v3 CSS library to all files.

Using websockets for post updates this feeds in to a webview component powered by django that interacts with an Angular PHP parser using Wordpress as the database translation layer that a python daemon watches and dumps the wordpress entry back in to a text file.

You then render this in to a shadow DOM with react and include Vue.js and Next.js to create a carousel and landing page boilerplate.

Re: How to Host a Blog on a Subdirectory Instead of a Subdomain (2025)

#15
post #5
post #3

Maybe should add "with Cloudflare Workers" to the headline Because hosting a blog inside a subdirectory is like the most trivial webserver thing ever

I wanted to but it said it exceeds the character limit

I was hoping this was a joke about storing your blog text AS the subdirectory name.

Re: How to Host a Blog on a Subdirectory Instead of a Subdomain (2025)

#19
post #9
post #3

Maybe should add "with Cloudflare Workers" to the headline Because hosting a blog inside a subdirectory is like the most trivial webserver thing ever

Are we not just doing static html for blogs anymore?

We are, but throwing the static HTML on a global CDN (like CloudFlare Pages/Workers, Netlify, Firebase Hosting, etc) makes things easier (nothing to maintain) and ensures that if we end up popular on HN or Reddit, there is no hug of death because the scale is infinite. Also, all of those have very generous free tiers, so it can cost nothing.
Post reply on HN