我想为我的web.config中的重定向规则写一条规则。web.config中的IIS url重定向规则
我想重定向像URL ...
http://www.example.net/profile/username
到...
http://www.example.net/#/profile/username
我已经添加了以下运行,但它似乎并没有工作。做这个的最好方式是什么?
<rule name="Redirect to hashed profile" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTP_HOST}{REQUEST_URI}" pattern="on" ignoreCase="true" pattern="^.net/profile/*"/>
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/#/{REQUEST_URI}" redirectType="Permanent" appendQueryString="true" />
</rule>