I want to write a rule for a redirect in my web.config.
I want to redirect urls like...
http://www.example.net/profile/username
to...
http://www.example.net/#/profile/username
I have added the below run but it doesn't seem to work. What is the best way to do this?
<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>