Trouble with Redirect Rule

Cloudflare>Rules>Redirect Rules is not working as expected.
I want to be able to browse to ‘subdomainDOTmydomainDOTorg’ then get redirected to ‘wwwDOTmydomainDOTorg’.

So I created a Redirect Rule with the below settings.

When incoming requests match…
Domain equals subdomainDOTmydomainDOTorg
Then…
URL redirect
Static wwwDOTmydomainDOTorg 301

But when I browse to subdomainDOTmydomainDOTorg I ended up being redirected to subdomainDOTmydomainDOTorg/wwwDOTmydomainDOTorg

Can you try setting your URL redirect to https://www.mydomain.org

Hi,
I tried that adding h.t.t.p.s.:././. to the destination but no joy.
Also changed from Domain to URI equals but still doesn’t work.

When incoming requests match…
URI equals subdomainDOTmydomainDOTorg
Then…
URL redirect
Static h.t.t.p.s.:././.wwwDOTmydomainDOTorg 301

There is and A-record for subdomainDOTmydomainDOTorg pointing to 192.0.2.1 if that makes a difference. If I browse to subdomainDOTmydomainDOTorg I end up on a Cloudflare “Connection timed out Error code 522” webpage.

Thank you,
Denis

Can anyone help?