Webmatrix Pretty Permalinks

I used Microsoft’s WebMatrix to develop some Wordpress themes and simple websites. Yes I’m a little lazy and WebMatrix sets up everything I need when starting a new site. I’ve used XAMPP before but it is all manual and time consuming and doesn’t have and editor.

Quick one how to make the pretty permalinks work on your Wordpress site done in WebMatrix. A quick search on codex and found this http://codex.wordpress.org/Using_Permalinks Basically create a new file, Web.config in the root directory of your site and add the following to it:

<configuration>
  <system.webServer >
  <!-- Required for WordPress URL rewriting -->
    <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>
  </system.webServer >
</configuration>

Now your permalinks should work.