Facing redirection issues - Need Wildcard redirect using cloudflare

For Workes & Pages, what is the name of the domain?

What is the error number?

301

What is the error message?

parallel pages are not redirecting

What is the issue or error you’re encountering

my relevent pages are not redirecting to new 301 domain same url pages

What steps have you taken to resolve the issue?

I have set page rule of domain forwarding like URL forwarding but the homepage is redirecting not other pages, like a wild card

What are the steps to reproduce the issue?

Please suggest a way to do a wild card like not just homepage every page redirect to the new domain

Hello,

Please suggest a way to do a wild card like not just homepage every page redirect to the new domain

There is wildcard option in redirect rule that you can try to configure.

Wildcard pattern : The rule will only apply to traffic matching the wildcard pattern.

  • Request URL: Enter the wildcard pattern using the asterisk (*) character to match multiple requests. For example, https://*.example.com/files/*.
  • Then: Define the URL redirect settings including:
    • Target URL: Enter the target URL, which can be static (for example, https://example.com) or dynamic (for example, https://example.com/${1}/files/${2}). Use wildcard replacement such as ${1} and ${2} to define dynamic target URLs.

For further information, kindly review this link : Create a redirect rule in the dashboard

1 Like