You can try this rule:
<rule name="test" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^test\.edwardsite\.com$" />
<add input="{REQUEST_URI}" pattern="^\test" negate="true" />
</conditions>
<action type="Rewrite" url="http://edwardsite.com/test/{R:0}" />
</rule>
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 related email notification for this thread.