Redirect Social Bots based on Header to new domain

I am trying to set up a page transformation via a Transform Rule to detect when a Social sharing bot from facebook, twitter or other social media platforms tries to read the meta data on our page to redirect to a different server. This is because our app is an angular app and the social media bots can not read the headers since they are dynamic.

So I have a configuration that looks like this:

But it is not redirecting correctly, what am I doing wrong? I want it to take a URL like and redirect it to so it should preserve the full path just a different URL

I receive this error image

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.