如何设置url重写来执行此操作?
http://abc.example.com至http://example.com/myfolder/abc.aspx
基本上遵循任何子域的模式。
这是我到目前为止所得到的,但它不起作用。
<rewrite>
<rules>
<rule name="subdomain mapping" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTP_HOST}" pattern="^(?!www)(.*)\.example\.com$" />
</conditions>
<action type="Rewrite" url="/myfolder/{C:1}.aspx/{R:0}" />
</rule>
</rules>
</rewrite>