I get 2 domains, one old and one newer.
I want to redirect all requests of the old domain to the newer
But I get subdomains and URL.
So I set URL to
and the destination to
because I have domain like that:
https://sub1.sub2.example.org/path witch need to become
Twice domain are set in cloudflare and twice have a server
How I can process?
(Sorry for my bad English)
First you’ll need to look at Advanced certificate manager as the default Cloudlfare certificate with Universal SSL will only cover one level of subdomain (
Then look at redirect rules.
sub2 are just a few values, you can do something simple like this…
sub2 are lots of values, then you’ll need to code up some string manipulations to do what you want…
…or bulk redirects…
Can I set a rule like
$1example.com/$2 and it will work because it’s wildcard?
because I have set the record
* to point to one ip and all subdomain and sub.subdomain work also
And if I use Cloudflare proxy, it will get CIPHER_ERROR_SSL with sub.subdomain
Do you have a solution?
As mentioned, by default Cloudflare issues a certificate only for one level of subdomain. You need to use Advanced Certificate Manager for second level and deeper.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.