I am having some trouble getting rewrite pas to work correctly when I point the destination to root.
If I point at a /page/ destination t seems to work correctly, but if I point at / it does not. Below is what I have in my web.config
<rewrite>
<rewriteMaps>
<rewriteMap name="StaticRewrites">
<add key="/1" value="/article.aspx?id=1&title=some-title" />
<add key="/random_page.htm" value="/" />
<add key="/friends.htm" value="index.php" />
<add key="/page_2.htm" value="/index.php" />
<add key="/some_other_page.htm" value="/some_other_page/" />
<add key="/some_page_test.htm" value="/test21.php" />
<add key="/2nd_page_test.htm" value="/test.txt" />
<add key="/3rd_page_test" value="/test1.htm" />
<add key="/4th_page_test.htm" value="article.aspx?id=1&title=some-title" />
<add key="/root_page_again.htm" value="/" />
</rewriteMap>
</rewriteMaps>
<rules>
<rule name="Rewrite rule1 for StaticRewrites">
<match url="(.*)" />
<conditions>
<add input="{StaticRewrites:{REQUEST_URI}}" pattern="(.+)" />
</conditions>
<action type="Rewrite" url="{C:1}" appendQueryString="false" />
</rule>
<rule name="WordPress: http://123.123.12.123" patternSyntax="Wildcard">
<match url="*" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php/{R:0}" />
</rule>
</rules>
</rewrite>
The 1st one works
The 2nd, 3rd, 4th does not work
The 5th, 6th, 7th, 8th and 9th does work
The 10th or last one does not
I have edited a few obvious spots for privacy IIS 8.5