Pretty permalinks using IIS 8

When I threw this blog together, I had chose one of the default Permalinks options of:


I wanted to get that index.php out of there and that is where my journey began.

I am running WordPress on IIS 8 and Windows Server 2012. First, I just went in and attempted to edit the Permalinks under settings, but when I went to save I got the below error.


I did some more research, created my own .htaccess at the root of my WordPress site and after no more luck realized that .htaccess is only used for Apache web servers. This led me to do some research into what permalinks is actually doing and found it just sets up a URL rewrite. Basically any request for a non-existent URL redirects to, in my case, index.php.

After searching through a handful of links, I came across a page on the codex that outlined the basics of what I needed. The problem is that the example on that page still didn’t work.

I dug back into Google and read through a few pages. I eventually realized what this web.config file is actually doing. It is just a URL rewrite rule in IIS! I logged back into my web server and opened the IIS Administration console. I manually added the URL Rewrite rule and didn’t add any mappings.





This left me with a very similar web.config, but a working one!


7 thoughts on “Pretty permalinks using IIS 8

  1. Chris

    THANK YOU!!!!! You have no idea how much time I spent trying to figure that out!!

  2. Anonimous

    Simple and functional. How the hell did not the 100 posts before this explained it like this.

    Good work. Cheers

  3. Ian

    Aw man! thanks so much. I just moved over from an Apache server and this was killing me.

  4. Anthony

    Thanks! I was pulling my hair out with this one.

  5. Rigo

    Just great, this took a bit of research from here and a bit from there, your page and some videos and I am all set–permalinks for WordPress in IIS 8.5–THANK YOU!!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">