Problems in redirecting subdomain

So, I’m using a web host provider that automatically sets the domain mydomain.ecommerce.com.br, even though my main domain is mydomain.com.br (even on the web host panel). My main domain is perfectly seted, the problem is that the web host service, makes my website use the mydomain.ecommerce.com.br adress in a few specific pages (they’re trying to make me pay more in order to remove this setting). I’m trying to make a rule in Clouflare to redirect all the access to mydomain.com.br, but when I try to create this rule, Cloudflare tells me that my rule needs to point to mydomain.com.br in a way. Is there a way to create this rule? Maybe creating a CNAME with mydomain.ecommerce.com.br or something like that.

Scratch what I just wrote. As “ecommerce.com.br” is not your domain, nor is it proxied by Cloudflare, there’s nothing you can do with a Page Rule. At best, you can try an HTML rewriter worker.

https://developers.cloudflare.com/workers/runtime-apis/html-rewriter

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.