Page Rule: How to forwards any format of URL

How to set up a page rule that can forwards any format of URL input to another URL?

Including:
http:// domain .com
https:// domain .com
http:// domain .com /*
https:// domain .com /*
http:// www. domain .com
https:// www. domain .com
http:// www. domain .com /*
https:// www. domain .com /*

Thanks.

1 Like

Um, not success, did I miss something?
Do I need to set up any DNS records?

Here is my setup in page rules:

Post a screenshot of your page rule list and one of the assigned nameservers on the DNS screen.

Hi, thanks for helping.

I tried to redo everything and now successfully forward the URL.
But it looks like the ( * ) does not work if any subdomain is entered, such as:

http://random.stockvins.co
https://random.stockvins.co

Nameservers setting on Namecheap:
2021-04-17 3.08.26

This is the only page rule set on Cloudflare:

You need a valid DNS record for the subdomain, if not the DNS will not even resolve the subdomain and return Cloudflare IP address - which is required for the page rule to work.

oh, I see.

So is there no wildcard method to redirect any URL input of one domain to another URL?

Wildcard subdomain is supported as per DNS specification, but the problem is Cloudflare does not allow you to proxy wildcard record (unless you have Enterprise plan)

2 Likes

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