This note documents how to configure a Cloudflare Redirect Rule to forward all requests from:

https://my.intermedia.com/*
→
https://myintermedia.intermedia.com/*

Prerequisites

  • intermedia.com DNS zone active in Cloudflare.
  • Access to Cloudflare dashboard with DNS + Rules permissions.

Implementation

1. Clean Up Old DNS Entry

  • Delete the existing my.intermedia.com DNS record pointing to a non-routable IP (e.g. 10.x.x.x).
  • Reason: non-routable IPs cannot be proxied, so Cloudflare rules will not apply.

2. Create Redirect Rule

  1. In Cloudflare Dashboard → Rules → Redirect Rules, add a new Custom Rule:

    Wildcard:

    https://my.intermedia.com/*
    

    Redirect type: Static -> 301 Permanent
    Destination URL:

    https://myintermedia.intermedia.com/${1}
    
    • $1 preserves the original path
    • Check Preserve query string checkbox.
  2. When prompted with “This rule may not apply to your traffic”, select:

  • Create a new proxied DNS record for my.intermedia.com.
  • Cloudflare will generate a placeholder record(orange-cloud) for my.intermedia.com so that traffic can be intercepted and redirected.
  1. Deploy the rule.
  2. Now, all traffic for my.intermedia.com will resolve to Cloudflare’s edge and be redirected to myintermedia.intermedia.com.

Verification

Check with curl (on Linux):

curl -I https://my.intermedia.com/testpath

Expected:

HTTP/1.1 301 Moved Permanently
location: https://myintermedia.intermedia.com/testpath

Also test in a browser to confirm redirect + query preservation.


Notes

  • Redirect Rules are simpler than Workers for this use case.
  • No origin server is needed; Cloudflare handles it entirely at the edge.
  • Always ensure the DNS record for my.intermedia.com is proxied (orange-cloud).