Subdomains using DigitalOcean and Cloudflare

What is the name of the domain?

'funfreegamesonline

What is the issue you’re encountering

Unable to create a working subdomain

What steps have you taken to resolve the issue?

Checked the CF help documentation and some posts on the community

What feature, service or problem is this related to?

DNS records

What are the steps to reproduce the issue?

I’m using a digital ocean droplet to host my website(funfreegames.online) and cloudflare for DNS.
I’m attempting to create a subdomain eg: 8m1h.funfreegames.online in cloudflare, but it keeps redirecting to the primary domain.
The TTL is 1 min and proxy is turned off. (DNS only). Any suggestions?

If this behaviour continues even when the sub-doimain DNS record is unproxied (:grey: DNS-only), then I am afraid at the origin host/server something is wrong with the configuration vhost file of the Web server, if it redirects to the primary domain.

Otherwise, I’d suggest you to create a sub-domain, proxy :orange: and reply here or unproxy :grey: so we could help you to troubleshoot where from does the redirection issue come.

I tried with a proxy as well (enabled currently on 8m1h.funfreegames.online). Its still redirecting to the primary domain. To note, I’m want both the domain and the subdomain to display the same content that is available on the primary server, so I’ve pointed them both to the same IP.

This redirect is happening on your origin server

When running a request to 8m1h.funfreegames.online and connecting to your origin server bypassing Cloudflare we can see the 301 redirect:

< HTTP/1.1 301 Moved Permanently
< Location: https://funfreegames.online/

Do you think the issue is at DigitalOcean or Wordpress? I couldn’t find any settings in DigitalOcean to disable the redirect. Could it have something to do with Wordpress?