I’m trying to match part of a hostname, then redirect to an external domain with the match included in the path.
- Rules → Transform Rule → HTTP Header Modification rule
- Match hostname regex (one|two|three).hostname.com
- Set static header Location = https://newhostname.com/newpath/$1
Of course, the last line doesn’t work as expected. Is there a different way to accomplish this?