Internet Information Services
Microsoft web server software.
1,586 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I want to redirect below url, can anyone help me move my domain name to a subdirectory?
http://www.support.example.com to http://www.example.com/support
Any suggestions are great!
You can try this rule:
<rule name="Test" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^www.(.*)\.example\.com$" />
</conditions>
<action type="Redirect" url="http://www.example.com/{C:1}/" />
</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.