Skip to main content
DNS routes whole hostnames, so it cannot route only /blog. The path option uses a Cloudflare Worker to forward blog requests while your main website stays at its existing host.
  1. Choose the path option in the domain dialog and add its TXT record.
  2. In your Cloudflare account, create a Worker and paste the complete Copy worker code generated by your dialog. The code already contains your hostname and upstream free address.
  3. In the Worker’s settings, add a secret named TRUHUDDLE_PROXY_KEY. Its value is the Copy proxy key value from the dialog. Deploy the Worker.
  4. Attach two Worker routes for your existing zone: company.com/blog and company.com/blog/*. The hostname must use Cloudflare’s proxy for those routes to run.
  5. Keep other website paths routed to your existing origin. Return to TruHuddle and click Check connection.
This example shows the generated Worker’s structure. For your connection, copy the version from the dialog so both hostnames match your workspace.
Cloudflare’s guides explain Worker routes and Worker secrets in more detail. The generated Worker strips account cookies and authorization before forwarding public requests, supplies the workspace-specific proxy secret and disables page caching. Keep that secret in Worker secrets. Disconnecting or reconnecting can change the key, so update the Worker if the dialog gives you a replacement.