I followed the instructions to Examine the IIS web page to add static redirects with a rewrite map for my asp.net application.
The following is the configuration:
<rule name="Redirect rule1 for Information" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{Information:{REQUEST_URI}}" pattern="(.+)" />
</conditions>
<action type="Rewrite" url="{C:1}" appendQueryString="true" />
</rule>
and
<rewriteMaps>
<rewriteMap name="Information">
<add key="/Information/CorporateSales.aspx"
value="/KB/Information/CorporateSales" />
<add key="/Information/ComputerRepair.aspx"
value="/KB/Information/ComputerRepair" />
</rewriteMap>
</rewriteMaps>
It was even originally created by a wizard in IIS Manager to use rewriting cards.
So the idea is that /Information/CorporateSales.aspx→ /KB/Information/CorporateSaleswith 301 redirect (MOVED CONSTANT).
However, I just get the aspx source page (which we delete later). I even deleted the file because it used the existing resource by default, and with that I just get a simple 404 without redirection.
Does anyone have an idea?
Let me clarify:
, . . .