I am using the URL Rewrite module for IIS 8.5. It is an ASP.NET website (using Sitecore CMS, though I think this is not relevant here). I want to redirect an old URL such as:
/legacy-pÈge
to a new URL:
/new-page
My rewrite rules look like this:
<rules>
<rule name="Legacy Redirects" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{my_rewrite_map:{REQUEST_URI}}" pattern="(.+)" />
</conditions>
<action type="Redirect" url="{C:1}" appendQueryString="False" redirectType="Permanent" />
</rule>
</rules>
<rewriteMaps>
<rewriteMap name="my_rewrite_map">
<add key="/legacy-pÈge" value="/new-page" />
</rewriteMap>
</rewriteMaps>
It does not seem to work, though the rules are evidently 'legal' since the module does not throw an error with this configuration. I have tried URL-encoding the legacy path i.e. /legacy-p%c3%83%cb%86ge
but this did not fix the issue.