How do I redirect a path to a different domain?

I am trying to send all traffic from mydomain.com/blog to mydomain.ghost.io using redirect rules but these seem to do nothing.I already have an A record with "mydomain.com" and it's being proxied.

I tried a page rule but it didn't do anything:
Pattern to Match Incoming Requests: mydomain.com/blog/*
Forwarding URL: https: //mydomain.ghost.io/$1


I also tried a redirect rule with the matching expression:
(http.host eq "mydomain.com" and starts_with(http.request.uri.path, "/blog"))

and the redirect url to https: //mydomain.ghost.io

What am I missing?
Was this page helpful?