Hello world! How to enable Pretty Permalinks in WordPress

This is my first post using WorkPress, as i seldom touch any php related development, so during the setup phase i encounter enabling Pretty Permalinks issue, after struggling on it for hours and done some research from web, finally let me figure it out.

Since my web hosting is windows OS based, i cannot use .htaccess to store the rewrite setting, the only way is to use web.config.

Here is the article i referred to, http://learn.iis.net/page.aspx/466/enabling-pretty-permalinks-in-wordpress/, just follow the instructions and there you go.

The main point is, change the setting under Settings/Permalinks, then copy the below code to your web.config.

<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>