Behind edge ✓host verge.run.placeproto httpscdn-loop vergcloud-staging; count=1
← Feature map

Redirects lab

Page-rule and www↔root redirects. Use manual redirect mode to inspect status + Location without following.

Quick setup — Redirects lab

Applies Verge config for this lab (redirects). Preflight (active domain + reachable CDN) runs first and must pass. Key stays in memory and is proxied server-side.

Example config

  • Page-rule URL: /api/origin/redirect/source*
  • redirect.enable true, status_code 301, url https://{domain}/api/origin/redirect/target (absolute https)
  • Optional: General settings www↔root redirect (off / www / root)

Setup guide

CDN → Domain [domain] → Page Rule → redirect / Settings → www↔root

Suggested config

  • Page-rule URL: /api/origin/redirect/source*
  • redirect.enable true, status_code 301, url https://{domain}/api/origin/redirect/target (absolute https)
  • Optional: General settings www↔root redirect (off / www / root)

Verify

  1. Probe source with no-follow (server probe) → 301/302 + Location
  2. Probe source with follow → land on target fingerprint
  3. Without a rule, source returns ORIGIN-REDIRECT-SOURCE

Origin routes

All probes are same-origin through the CDN hostname. Open routes in a new tab to compare edge vs origin headers.

www↔root: open https://www.<domain>/ vs root and confirm the panel redirect setting. Not automated here.
No request yet — hit a button above to run a probe.