Hello,
I would like to rewrite url from
www.website.com/index.asp?lang=en to
www.www.website.com/enIn web.config I have inserted the code but it doesn't work, what's the right way?
<rewrite>
<rules>
<!-- index -->
<rule name="index 1">
<match url="^index\.asp(.*)" ignoreCase="true" />
<conditions logicalGrouping="MatchAll">
<add input="{QUERY_STRING}" pattern="^(.*)lang=(.*)" ignoreCase="true" />
</conditions>
<action type="Redirect" url="{C:2}/" appendQueryString="false" />
</rule>
<rule name="index 2" stopProcessing="true">
<match url="^/(.*)" ignoreCase="true" />
<action type="Rewrite" url="index.asp?lang={R:1}" appendQueryString="false" />
</rule>
</rules>
</rewrite>