I have a site that was on example.com/rewards which should now be rewards.example.com
I was able to rewrite the request based on checking the host (and if it wasn't rewards.example.com redirect there) but there are images and redirects that use /rewards eg. /rewards/images/logo.jpg and header('Location: /rewards');

I would rather not rewrite all of them by hand but I have tried various different things and can't seem to get any request to /rewards/* to redirect to rewards.example.com/*