https://www.davidma.org/blog/2025-11-14-host-your-blog-on-a-subdirectory/ #blogging #tips #confusion #subdirectory #HackerNews #revelation #HackerNews #ngated
How to Host a Blog on a Subdirectory Instead of a Subdomain
https://www.davidma.org/blog/2025-11-14-host-your-blog-on-a-subdirectory/
#HackerNews #blogging #tips #subdirectory #web #development #SEO #hosting
To deal with the combination of #LetsEncrypt and using #WordPress in a #subdirectory, I'm using this in my .htaccess at the top level of the site:
RewriteRule ^.well-known/(host-meta|webfinger|nodeinfo|x-nodeinfo) /journal/.well-known/$1 [L]
This is to ensure that *only* the webfinger and nodeinfo endpoints are forwarded to the blog where the #ActivityPub plugin picks them up, and Let's Encrypt will find .acme-challenge and be able to renew my TLS cert when the time comes.