URL Rewriting with WordPress on IIS 7

1. Make sure that the URL Rewrite module is installed. You can check / install through the WebPI installer. 2. Add the following configuration into the system.Webserver section of the web.config at the root of the wordpress site:
<rewrite>
    <rules>
        <rule name="Main Rule" stopProcessing="true">
            <match url=".*" />
            <conditions logicalGrouping="MatchAll">
                <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
            </conditions>
            <action type="Rewrite" url="index.php" />
        </rule>
    </rules>
</rewrite>
More detailed instructions: