I want to redirect all traffic from multiple (60+) subdomains to one URL. I don’t want to buy 60+ page rules so I decided to create just one page rule for one subdomain and redirect all other subdomains to the subdomain with rule.
So let’s assume that we have domain1.some_domain.com. It’s redirected to another_domain.com/some_url via page rule.
Now I want to connect all other subdomains (domain2.some_domain.com, domain3.some_domain.com) to the domain1.some_domain.com. How can I do that?
How this setup looks like now:
CNAME domain1.some_domain.com points to example.com (literally, I’m not hiding it). This subdomain also has a page rule that redirects all the traffic to https://another_domain.com/some_url
CNAME domain2.some_domain.com points to domain1.some_domain.com.
All domain entries are proxied. Also account has a SSL mode “Full (strict)”.
Now when I’m trying to get domain2.some_domain.com I’m getting a 526 error (Invalid SSL certificate). How can I fix it? May I create a direct DNS record to redirect users from domain1.some_domain.com to https://another_domain.com/some_url instead of using page rule?
Thank you in advance!