I need to redirect a url called "www.mydomain.com" to "www.mydomain.com/index.php?id=1". I configured http redirection on IIS but I get Too many redirect error. I also tried doing it via url rewrite module but I get same error. If I check the box append query string, the url shows "www.mydomain.com/index.php?id=1&id=1&id=1&id=1...". The &id=1 shows many times. My web config rewrite rule is as follows:
<rules>
<rule name="redirect" enabled="true" patternSyntax="ECMAScript" stopProcessing="true">
<match url="(.*)" />
<action type="Redirect" url="/index.php?id=1" appendQueryString="true" />
<conditions>
</conditions>
</rule>
</rules>
Can someone help me. I have been trying this all day. Thank you.