Migrate Forwarding URL - Page Rules to Redirect Rules

Hi Cloudflare Community,

I’m am trying to migrate my page rules settings to the Redirect Rules.

This is how my Page Rules page looks like:

I’ve tried various substring functions but haven’t found the right one. Additionally, since the asterisk character (*) is not supported within Redirect Rules, I’m struggling to encompass subdomains.

I would really appreciate any information or advice you can offer to help me with this.

Thanks,

This should do it. As long as it’s not the apex domain, then redirect to the new hostname, and keep the path and query string:

concat("https://oyungame.net",http.request.uri.path)