I'm still very new to using URL rewrites and redirects and I'm having some problems on something I thought was quite simple...
I've just rebuilt a website and want to redirect the old URLs to the new ones.
For example:
http://www.mydomain.com/about.asp?lang=1<br>
Should now be:
http://www.mydomain.com/content.asp?id=100230&title=about&langid=1
Unfortunately, everything I've tried is giving me errors or simply does nothing.
Here is one rule I tried:
<rule name="redirectoldabout" enabled="true" stopProcessing="true">
<match url="( .*)" negate="true" />
<conditions>
<add input="{HTTP_HOST}" pattern="^mydomain\.com/about\.asp\?lang=1$" />
</conditions>
<action type="Redirect" url="http://www.mydomain.com/content.asp?id=100230&title=about&langid=1" redirectType="Permanent" />
</rule>
but I get an error back:
HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid.
Any suggestions as to what I'm doing wrong?