SEO Best Practices with Cloudflare Workers, Part 2: Implementing Subdomains
Blog post from Cloudflare
In this text, the author discusses how to implement a subdirectory strategy using Cloudflare Workers instead of NGINX for routing traffic from subdirectories to remotely hosted services. The author provides an example script that proxies traffic from a subdirectory (bobtopia.com/blog) to a hosted Ghost blog endpoint (bobtopia.coolghosthost.com). The script handles requests for HTML documents and assets required by the document, ensuring that the browser still thinks it's on bobtopia.com. The author also mentions a caveat about the current implementation and suggests a more general solution involving modifying the blog asset block to handle asset requests without using paths. Finally, the author encourages readers interested in deploying Cloudflare Workers to reserve a workers.dev subdomain or add Workers to their existing website on Cloudflare.
| Trend | Post Mentions | Total Month Mentions | Posts | Companies | MoM |
|---|---|---|---|---|---|
| Serverless | 2 | 290 | 51 | 21 | +43% |
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.