Why Edge Redirects Matter
Edge redirects make a link hop faster and stop it depending on the origin. Akamai’s documentation says handling a redirect at the edge saves “a round-trip to the origin and any resulting hits against your infrastructure.”
- Less delay. The redirect costs one trip to the edge server, which lowers redirect latency for visitors far from the origin.
- Less origin load. Retired URLs, bot requests, and campaign spikes never reach the web server.
- Resilience. A rule stored at the edge can still answer when the origin is slow or offline.
- Central control. One rule set can cover several domains, with no server config changes on each site.
How an Edge Network Redirect Works
The domain’s DNS must point at the edge network first. Cloudflare, for example, only runs redirect rules on hostnames proxied through it.
- The visitor’s request reaches an edge data center, and the TLS handshake ends there.
- The edge server checks the URL against its rules. Conditions can include path, hostname, country, device, or cookie.
- On a match, it returns a 301, 302, 307, or 308 response with a
Locationheader. The origin is never contacted. - With no match, the request continues to the cache or the origin as normal.
Rule processing is not the slow part. AWS lists CloudFront Functions execution time as submillisecond, so network distance decides most of the cost.
Types of Edge Redirects
Platforms offer three levels of CDN redirect. Use the simplest one that fits.
- Static lists. Exact source-to-target pairs for migrations and retired URLs. Cloudflare Bulk Redirects allows 10,000 URLs on Free and 1,000,000 by default on Enterprise (November 2026).
- Pattern rules. Wildcards or regex, such as
/blog/*to/articles/*. Cloudflare Single Redirects allows 10 rules on Free, and regex needs a Business plan or higher. - Edge functions. Code for lookups, geo routing, or A/B splits. Options include Cloudflare Workers, CloudFront Functions, and Vercel middleware.
This Cloudflare Worker redirects one campaign path and keeps its UTM parameters:
const redirects = new Map([
["/spring-sale", "https://www.example.com/offers/spring"],
]);
export default {
async fetch(request) {
const url = new URL(request.url);
const target = redirects.get(url.pathname);
if (!target) return fetch(request);
return Response.redirect(target + url.search, 302);
},
};
Edge Redirects and UTM Parameters
Check query string handling before sending campaign traffic through any edge redirect. Defaults differ by platform, and the wrong one removes UTM tags without an error.
| Platform feature | Keeps the query string by default? |
|---|---|
| Cloudflare Single Redirects | No. “Preserve query string” is off |
| Cloudflare Bulk Redirects | No. preserve_query_string is false |
| Vercel bulk redirects | No. preserveQueryParams is false |
| Vercel configuration redirects | Yes. Merged with the target’s parameters |
| Netlify redirects | Yes. Passed on automatically |
Cloudflare Bulk Redirects has a second trap. With preservation on, any query string written on the target URL is discarded, so UTMs hardcoded there disappear.
How to Check a CDN Redirect
CDN headers alone do not prove an edge redirect, because a CDN also adds them to redirects that came from the origin. Compare timings as well.
curl -s -o /dev/null -D - -w "dns %{time_namelookup}\nconnect %{time_connect}\ntls %{time_appconnect}\nfirst byte %{time_starttransfer}\n" https://example.com/old-page
- Find the data center.
CF-Rayends in a three-letter code, such asBOMfor Mumbai. Fastly’sX-Served-Byand Vercel’sX-Vercel-Idcarry similar codes. - Compare connect and wait times. Subtract
dnsfromconnect, thentlsfromfirst byte. Similar results mean the edge answered. A much longer wait suggests a trip to the origin.
Edge does not always mean nearby. On 25 November 2026, one client in India requested four CDN redirects 10 times each over new connections. Median times:
| Redirect | Answered from | Connect | Wait | Total |
|---|---|---|---|---|
| CDN 1, hostname A | Mumbai | 18 ms | 24 ms | 90 ms |
| CDN 1, hostname B | Marseille | 116 ms | 128 ms | 406 ms |
| CDN 2 | Mumbai | 18 ms | 18 ms | 84 ms |
| CDN 3 | Mumbai | 17 ms | 16 ms | 72 ms |
Both CDN 1 hostnames used the same provider, yet one was 4.5 times slower. Network routing picked the data center, not geography. Test from the countries your audience uses.
Common Edge Redirect Issues
- Conflicting rules. An edge rule and an origin rule that point at each other create a redirect loop. Keep each redirect in one layer.
- Rule order surprises. Cloudflare runs Single Redirects before Bulk Redirects, and the first match wins.
- Missing click data. Redirects answered at the edge never appear in origin logs. Use CDN logs or a link tracker.
- Central lookups. An edge function that queries one distant database loses most of its speed advantage. Store the mapping at the edge.
Frequently Asked Questions
What is an edge redirect in simple terms?
An edge redirect is a forwarding rule that runs on a server close to the visitor. The CDN sends the visitor to the new URL without asking the main website server. The visitor sees an ordinary redirect.
What is the difference between an edge redirect and an origin redirect?
The difference is which server answers. An origin redirect comes from the web server or application, such as Nginx, Apache, or WordPress, so every request travels there. An edge redirect is answered by the CDN. The status codes and their meaning are identical.
Is edge URL routing the same as an edge redirect?
No. Edge URL routing covers any decision an edge server makes about where a request goes. A redirect sends the browser to a new address, so the URL changes. A rewrite fetches different content and leaves the address bar unchanged. Choosing between origin servers is routing too.
Are edge redirects good for SEO?
Edge redirects work like any other server-side redirect for SEO. Googlebot reads the status code and Location header, so use a 301 or 308 for permanent moves. Google recommends a permanent server-side redirect whenever possible for pages that have moved. Edge rules also help collapse several origin hops into one.
Do edge redirects slow down links?
Every redirect adds a hop, but an edge redirect usually adds less than an origin one. In the test above, three of four finished in 90 ms or less. The fourth took 406 ms because it was answered on another continent.
To confirm a redirect takes one hop and keeps its UTM tags, run the link through the free redirect checker at linkutm.