Redirect rule from subdomain to apex domain doesn't work

What is the name of the domain?

blog.dmarcoux.com

What is the error number?

522

What is the issue you’re encountering

Redirect rule from subdomain to apex domain doesn’t work.

What steps have you taken to resolve the issue?

I have 2 CNAME records, both are proxied.

  • Name: blog, Content: @
  • Name: dmarcoux.com, Content: dmarcoux-com.pages.dev

The redirect rule is a single redirect using a wildcard pattern with:

To perform a redirect like this, request URL needs to feature a protocol: https://blog.dmarcoux.com/*

If you want to redirect all protocols to HTTPS, you can use two wildcards:

  • Request URL: *://blog.dmarcoux.com/*
  • Target URL: https://dmarcoux.com/${2}

We will add an additional check for this in the UI so that dashboard users could fix missing protocols before deploying a rule.

1 Like

This worked, thank you so much Nikita for the quick reply and the clear instructions. I decided to go with the request URL *://blog.dmarcoux.com/* to redirect all protocols to HTTPS.

Have a great day!

1 Like

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