References /main/xxxx/ go to /main/, but I need make rule with one reference (/main/docs/) whitch doesn`t have redirect.
To achieve the requirement, you can try to add a condition to the rule, like below.
<rule name="main" stopProcessing="true">
<match url="main/([^.]*)/$" />
<conditions>
<add input="{REQUEST_URI}" pattern="main/doc/" negate="true" />
</conditions>
<action type="Redirect" url="/main/" appendQueryString="false" redirectType="Permanent" />
</rule>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…