내 web.config에서 리디렉션 규칙을 작성하고 싶습니다. 나는 아래의 실행을 추가했지만 작동하지 않는 것 web.config의 IIS url 리디렉션 규칙
http://www.example.net/profile/username
에
...http://www.example.net/#/profile/username
내가 좋아하는 URL을 리디렉션 할
.... 이 작업을 수행하는 가장 좋은 방법은 무엇입니까?
<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>