I want to create a very simple URL rewrite rule. I'm using IIS 7 Express (XP) locally with Visual Studio 2010. The rule I've created (copied from an example here) works perfectly locally. However as soon as I copy it to my Hosting server, I get a 500 error.
Excerpt from web.Config:
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
<rewrite>
<rules>
<rule name="Rewrite to article.aspx">
<match url="^article/([0-9]+)/([_0-9a-z-]+)" />
<action type="Rewrite" url="article.aspx?id={R:1}&title={R:2}" />
</rule>
</rules>
</rewrite>
</system.webServer>
Assuming that the rule is what is breaking the application I've removed the rules section but the application still throws a 500 error. However if I remove the rewrite section entirely the application loads properly.
So my question is, am I missing anything from my web.Config? Their claim is that it's a scripting issue and that the URL Module is properly installed and working on their IIS 7 server. Is there any way I can confirm this with a script?