Discussion
How to Host a Blog on a Subdirectory instead of a Subdomain with Cloudflare Workers
teach: Maybe should add "with Cloudflare Workers" to the headlineBecause hosting a blog inside a subdirectory is like the most trivial webserver thing ever
taikon: I wanted to but it said it exceeds the character limit
gnabgib: Maybe(?): How to Host a Blog in a directory Instead of Subdomain with Cloudflare Workers
gnabgib: (2025) At the time (on a different domain, but not in a subdirectory) https://news.ycombinator.com/item?id=46050069
taikon: Yes I switched the domain. But davidma.co redirects to davidma.org.
gnabgib: It doesn't presently (maybe a config issue?) Cloudflare just never responds:> Connecting to www.davidma.co(more..)> HTTP request sent, awaiting response... (timeout)
ahme: Are we not just doing static html for blogs anymore?
cr125rider: That doesn’t sound bloated enough. Too fast. Gonna give a user whiplash.
Bender: We could just enable auto-index and drop a bunch of .txt files into it.
doublerabbit: .htaccess that rewrites the .txt to serve the file as an .html extension. With help from bash you append a bootstrap v3 CSS library for all files.Using websockets for post updates this feeds in to a webview component powered by django that interacts to an Angular PHP parser that uses Wordpress as the database translation layer.You then render this in to a shadow DOM utilising react.
nomel: I was hoping this was a joke about storing your blog text AS the subdirectory name.
shmoe: also proof that everything old is new again at some point.