External subdomains pointing to one subdomain I own

What is the name of the domain?

example.com

What is the issue you’re encountering

Im trying to get external subdomains (example: test.example.com) to be pointed to my subdomain (example: subdomain.domain.com). I’ve set up a CNAME record on the test.example.com to point to subdomain.domain.com (dns-only) which seems to point correctly as the alias. On my domain, ive set up an A record for subdomain.domain.com (proxy enabled) and I can access that via a browser. However, when propagation is complete and I go to test.example.com it enters into a redirect loop and I cannot seem to trace the issue.

What feature, service or problem is this related to?

DNS records

You can’t just create CNAME records to a proxied hostname. The only exception is if they are in the same Cloudflare account.

If they are not, you need to use Cloudflare for SaaS:

You also need to make sure that your webserver is configured for the external domain.

I dont understand.

The process should be as follows:

test.example.comsubdomain.domain.com (use PHP to detect referral host) → serve the correct page.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.