Hi @Chris du Preez,
You just use the following redirect rule:
<rule name="redirect" enabled="true" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="imt.flamengro.co.za" />
</conditions>
<action type="Redirect" url="https://wp-test.flamengro.co.za/imt" />
</rule>
I have tested this rule and can successfully redirect https://imt.flamengro.co.za
to https://wp-test.flamengro.co.za/imt
.
It is recommended that you clear your browser cache before testing. If you still can't succeed, try using FRT to trace the rewrite rules, you can see how the rules are used internally.
If you have any questions, please continue to communicate with me and I will get back to you as soon as I see it.
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