DigiNews

Tech Watch by Johan Denoyer

← Back to articles

How to Host a Blog on a Subdirectory Instead of a Subdomain with Cloudflare Workers

Quality: 8/10 Relevance: 9/10

Summary

This article provides a step-by-step guide to host a blog on a subdirectory using Cloudflare Workers, covering DNS configuration, Next.js basePath setup, and a proxy worker to route /blog to the blog. It also discusses SEO considerations, including robots.txt handling, and how to verify proper indexing (subdirectory indexed, subdomain not indexed).

🚀 Service construit par Johan Denoyer