Custom Domain Condition

Not sure if possible natively.

Here’s the list of request meta data we can look at:
https://tyk.io/docs/getting-started/key-concepts/context-variables/

Doesn’t look like “host” is one of them.

You could write a custom plugin to look at the requested server name and inject it as a header ? That way your URL rewrite could have access to that header and write to an API depending on its value.

Here’s a line in a “pre” Go plugin that injects the requested Host name as a header: