Enabling Pretty Permalinks in WordPress on IIS 7.5

Enabling Pretty Permalinks in Word Press.

For enabling pretty permalinks in word press installed on IIS 7.5 server complete the following.

1. Install URL Rewrite 2 module.  Which can be downloaded from http://www.microsoft.com/en-us/download/details.aspx?id=7435

2.Update the web.config file at inetpub/wwwroot

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
<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/{R:0}" />
        </rule>
    </rules>
</rewrite>
    <httpErrors errorMode="Detailed" />
        <defaultDocument>
            <files>
                <add value="index.php" />
            </files>
        </defaultDocument>
  </system.webServer>
</configuration>

3.Ensure the default document, index.php is set for the wordpress site.

Cheers!
Sanjay