Hi @Blake Duffey ,
From your description, my understanding is that you want to redirect s2.foo.com
to s1.foo.com
and redirect s3.foo.com
to s2.foo.com/somespecialpage
by rewrite map, please point out my mistakes if I understand incorrectly.
In rewrite map, it is not possible to have {HTTP_HOST} in both key and value. If you want to implement multiple redirects, it is recommended to create blank rules separately. Even though this would be repetitive, this is the least error prone method.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the email notification for this thread.
Best regards,
Yurong Dai