My page redirect does not preserve the path

Hello,

I am trying to set up a page redirect from

https://www.anddine.co.uk/blog/cooked-meals-delivered/

to

https://blog.anddine.co.uk/cooked-meals-delivered/

I have set up a page redirect that matches the URI path to /content/*/ and 301’s it to https://blog.anddine.co.uk/$1/ and also tried matching the full URI.

The problem is it does not preserve the path and redirects me to https://blog.anddine.co.uk/

I’ve asked chat GPT and it told me to use ^https?://(?:www\.)?anddine\.co\.uk/blog/(.*)$ but this also didn’t work so I think it might be some config in my Cloudflare which prevents it.

Please help!

UPDATE: I have also got an A record set up for the blog subdomain -

A
blog
35.214.109.176

How are you making the redirect? Page Rules, Redirect Rules or with _redirects?

Only Page Rules support the $1 syntax.

Rules > Redirect rules @KianNH