Domain redirect failing

Hello,

This one may be obvious, but it is still not working. Trying to redirect one domain to another. I set the DNS records:
A @ 192.0.2.1
A www 192.0.2.1

And added a page rule:
*mydomain.net/*
to
https://mydomain.org/$2

www.mydomain.net does redirect, but mydomain.net does not. Any ideas why?

Are both of the A type DNS records proxied :orange:?

Maybe if you split it into two rules?:

mydomain.net/* Forwarding URL 301 -> https://mydomain.org/$1

www.mydomain.net/* Forwarding URL 301 -> https://mydomain.org/$1

Or rather if not using any other sub-domain (other than www) like cdn.mydomain.net, sub.mydomain.net, you could try with

*mydomain.net/* Forwarding URL 301 -> https://mydomain.org/$1

Not quite sure why it does not work for the wildcard.

1 Like

No idea why it didn’t work. I deleted the page rule and then added it again and then both redirects were fine again. I changed nothing in the page rule, just deleted it, and added the same page rule again.
Thank you for your help!

1 Like

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