#Subdomain don't work with Cloudflare pages. HELP

7 messages · Page 1 of 1 (latest)

quaint abyss
#

Hi I'm currently building a tool with cloudflare pages, and have a middleware which checks the subdomain and show return a value.

I was able to test this using the test.mysite.pages.dev

but when I connected my domain, and added a wildcard routing, it didn't work.
Also added just a normal domain and still didnnt work.

my DNS
AAAA
*
100::
Proxied

CNAME
mysite.com
mysite.pages.dev

Please help, i've cleared the cache, and reconnected my domain, but the subdomain still don't seem to work.

frozen harness
quaint abyss
#

Still getting the same issue

I remove the default mysite.com

and change it to sub.mysite.com and still get the same issue.

What I want to achieve though is the ability for mysite.com to still work, with any subdomain whildcard, but even the default subdomain don't work

frozen harness
quaint abyss
#

oh that works, is there no way to make a wildcard subdomain with pages.

I'm trying to use the _middleware to create some dynamic pages based on the subdomain.

#

or would I have to use a workers?

feral saffron
#

You need to use Workers with a Worker Route