Subdomains?

#1

I have two subdomains for my main website that I want to redirect!

I don’t even know if I created the subdomains in Cloudfare :frowning:

How can I know if I created the subdomains in cloudfare AND how can I redirect them to a new URL?
Jena

0 Likes

#2

They need DNS entries. “A” records with an IP address. If you already have an “A” record for your main domain, just do the same thing, but for ‘sub1’ and ‘sub2’ with that IP address, and make sure they’re both set to :orange:

Then you’ll need a Page Rule for each one for the redirect:
Match sub.example.com/* with a Setting for a Forwarding URL (301) to https://example.com/$1 (The $1 forwards the path as well. Leave it off if you don’t want to forward the path, as this would cause a 404 upon redirect)

0 Likes