Webmatrix Pretty Permalinks

Posted onApril 03, 2013

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:

  <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" />
            <action type="Rewrite" url ="index.php/{R:0}" />
    </rules >
  </system.webServer >

Now your permalinks should work.

Share my post please

Geoffrey Hunt is a freelance developer, happiest working in JavaScript.

Hire me