For Cloudflare DNS managed domains, I want to internally forward requests to Pages when accessing any subdomain as below.
*.example.com → sample.pages.dev
If subdomain is a specific one, not any subdomain, I can meet my requirements by using Pages Custom Domain. (Setting " .example.com " in CustomDomain is not supported)
However, wildcard () subdomains is not currently supported in Pages Custom Domain.
Therefore, it cannot be realized for wildcard subdomain.
Therefore, I thought about using Workers by referring to “Redirect” code in Document, but this method has the problem that the URL that can be seen from the browser changes.
Please let me know if there is a solution to this problem. thank you.