cloudflare · Cloudflare Workers Docs
Workers Bulk redirects
Implements a Cloudflare Worker that performs URL redirection by mapping incoming request URLs against a predefined object of destination paths.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Workers Bulk redirects
Implements a Cloudflare Worker that performs URL redirection by mapping incoming request URLs against a predefined object of destination paths.
When To Use
Use when you need to implement a high-performance URL redirection service using Cloudflare Workers and a mapping object.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-examples-bulk-redirects-workflow-guide.md | A Cloudflare Workers example using the Hono framework to implement bulk URL redirects based on a mapped object. | Questions about a Cloudflare Workers example using the Hono framework to implement bulk URL redirects based on a mapped object. |
examples/workers-examples-bulk-redirects-cloudflare-workers-bulk-redirects-javasc.text | A JavaScript implementation of a Cloudflare Worker that uses a Map to perform bulk URL redirects based on incoming request paths. | Exact payloads, commands, or snippets shown in A JavaScript implementation of a Cloudflare Worker that uses a Map to perform bulk URL redirects based on incoming re... |
examples/workers-examples-bulk-redirects-cloudflare-workers-bulk-redirects-javasc-2.text | A JavaScript implementation of a Cloudflare Worker that uses a Map to perform bulk URL redirects. | Exact payloads, commands, or snippets shown in A JavaScript implementation of a Cloudflare Worker that uses a Map to perform bulk URL redirects. |
examples/workers-examples-bulk-redirects-cloudflare-workers-bulk-redirects-python.text | A Python implementation of a Cloudflare Worker that uses a dictionary to map multiple URL paths to external destinations for bulk redirection. | Exact payloads, commands, or snippets shown in A Python implementation of a Cloudflare Worker that uses a dictionary to map multiple URL paths to external destinati... |
examples/workers-examples-bulk-redirects-cloudflare-workers-bulk-redirects-hono.text | A Hono-based Cloudflare Workers implementation demonstrating bulk URL redirection using a Map object. | Exact payloads, commands, or snippets shown in A Hono-based Cloudflare Workers implementation demonstrating bulk URL redirection using a Map object. |
What This Skill Covers
- Redirect requests to certain URLs based on a mapped object to the request's URL.
- Main sections:
Tags.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://developers.cloudflare.com/workers/examples/bulk-redirects
