I have an Asp.NET application installed on the default website \ orchard ... available at http: // localhost / orchard , and I want to use the Rewrite URL. I added the rules:
<rewrite> <rewriteMaps> <rewriteMap name="Blogger"> <add key="/aaa" value="/tags/tag1" /> </rewriteMap> </rewriteMaps> <rules> <clear /> <rule name="Rewrite rule1 for Blogger" stopProcessing="true"> <match url=".*" /> <conditions logicalGrouping="MatchAll" trackAllCaptures="false"> <add input="{Blogger:{REQUEST_URI}}" pattern="(.*)" /> </conditions> <action type="Redirect" url="{C:1}" appendQueryString="false" redirectType="Permanent" /> </rule> </rules> </rewrite>
But when I go to http: // localhost / orchard / aaa , then error 404 is returned instead of redirecting to http: // localhost / orchard / tags / tag1 .
When I put my web application in the root folder of the website redirect. http: // localhost / aaa redirects to http: // localhost / tags / tag1 .
What am I doing wrong?
Thanks for the help.
zielu1
source share