I’ve read all of the documentation, and while it has some examples for fancier stuff like checking out a language and redirecting to a language-specific subdomain, I’m simply trying to: redirect a subdomain on my domain to an outside url.
example: have a domain bought through Cloudflare, it has a www CNAME, and a page rule (from before i learned about redirects) that makes sure the domain itself (and www) points to URL
what I want to do:
add a single redirect to make it so a new subdomain, like ‘search’ points to a different url.
I THINK, through a lot of trial and error, I have to do the following:
- create a cname for the new subdomain, point it to ‘@’ in DNS
- go to single redirect, and redirect ‘hostname’ and put in ‘search’, and then in the second part but the outside url i want to send traffic to.
this /seems/ to work, sorta, although sometimes it behaves such that ‘search’ and ‘www’ redirect to the same place for a while, but eventually it ends up like it should and ‘
www.cfdomain.com’ and ‘
search.cfdomain.com’ redirect to different places.
is this how this ‘should’ be done?
ps: thanks in advance. i read all the tutorials i could find too but they’re all order and point to page rules, of which i seem to get less and also various CF pages say to use redirects if possible first lol.