All of my site URLs changed to new format and now i want to use 301 redirect and manually add the old and new URLs to the web.config OR RewriteRules.config
see:
http://support.powerdnn.com/kb/a616/how-to-redirect-an-old-url-to-another-page-on-your-site.aspx
so according to PowerDnn article i want to add the following code to my web.config in system.webserver node.
<rewrite>
<rules>
<rule name="[RULE NAME]" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAny" trackAllCaptures="false">
<add input="{HTTP_HOST}{REQUEST_URI}" pattern="[OLD URL]" />
<add input="{HTTP_HOST}{REQUEST_URI}" pattern="www.[OLD URL]" />
</conditions>
<action type="Redirect" url="http://[NEW URL]" />
</rule>
</rules>
</rewrite>
but when i add this code and save the web.config i get the following error
Also i use
http://ruwix.com/dnn-301-rewrite-rule-generator/
to create 301 redirect rules, but i can't add this to web.config and receive the above error.