Warning: fopen(D:/Hosting/4101726/html/wp-ga-backups/backups/.htaccess) [function.fopen]: failed to open stream: Permission denied in D:\Hosting\4101726\html\wp-content\plugins\backupwordpress\functions.php on line 377
Cannot open file (D:/Hosting/4101726/html/wp-ga-backups/backups/.htaccess)
Warning: fwrite(): supplied argument is not a valid stream resource in D:\Hosting\4101726\html\wp-content\plugins\backupwordpress\functions.php on line 381
Cannot write to file (D:/Hosting/4101726/html/wp-ga-backups/backups/.htaccess)
Warning: fclose(): supplied argument is not a valid stream resource in D:\Hosting\4101726\html\wp-content\plugins\backupwordpress\functions.php on line 385
Wordpress Permalinks on Windows IIS | Global Artwork

WordPress Permalinks on Windows IIS

Thursday, November 12, 2009 @ 10:11 AM

WordPress is written in PHP, and generally php runs better under apache on Linux, but you can run it on IIS on Windows machines. In fact this blog is running under Windows.*

If you find you have changed the permalinks options in your wordpress installation, but you find they don’t work,  first check if you are running on a Windows machine. On a shared hosting account, it should have said whether it was windows or linux, but at the least, if you have the option for asp.net, then you are on windows.

If you are on a Linux machine under apache, there are loads of resources for making sure permalink rewrites work. Running WordPress on windows however is much less common, so I thought I would post a quick fix for getting it to run under IIS7.

The trick involves adding a web.config file to your base installation. A web.config file is a configuration file used by Windows specifically for .net, but in this case if you are running wordpress you can trick IIS into passing the buck on files it can’t find to WordPress, that then handles it.

Simply ensure the URL Rewrite module is enabled on the IIS server (lots of hosts, including GoDaddy, have this enabled, but talk to your hosting company if it doesn’t), then add the following web.config file to the base of your WordPress installation.


Note – windows prevents downloading anything with .config by default at the end, so download this file, remove the .txt at the end, then upload.

Good luck, and post comments if you still have problems!

* “Why the hell would you do that??” I hear you say! Generally web devs are fans of either languages made to run on proprietory systems (ASP.NET, Coldfusion etc) or open source Linux or Unix systems (php, ruby etc). Two reasons – It’s because I do both php (which runs on both) and ASP.NET dev, which only runs on Windows. To occasionally demonstrate some .net stuff on this blog, I need it to be on windows, or host it separately. Second, its using IIS7, which handles php almost as well as Apache. Linux and Windows fans – feel free to fight it out in the comments!
Like this? Share it!
  • Digg
  • del.icio.us
  • Facebook
  • DotNetKicks
  • email
  • Reddit
  • RSS
  • Slashdot
  • StumbleUpon
  • Technorati
  • Twitter
  • Yahoo! Buzz

61 Responses to “WordPress Permalinks on Windows IIS”

  1. This article is truly a fastidious one it helps new net visitors, who are wishing for blogging.

  2. Hi my family member! I wish to say that this article
    is awesome, great written and include almost all vital infos.

    I would like to look extra posts like this .

  3. Pk says:

    Thank You so much for this great help!!

  4. Matt says:

    Thanks for the post. I have linked to his from my site because I think it does a good job explaining the issue and gives an easy fix. While it didn’t fix it the problem for me it should fix it for others. I have found a work around that worked on my clients server and while permalink is slightly different in how it looks it is still better then post numbers. You can use the custom option and use use this: /index.php/%postname%/
    to achieve a similar workaround.

  5. Promod says:

    It was very useful for our Arts and Crafts website. Thank You very much

  6. this can be beneficial together with excellent,
    anticipate you will discover one thing a lot more from this, all of us
    will definitely look at data to ensure that it could be
    much more usefull, in live performance many of us will definitely on the lookout for
    another information.
    You know, for this world we’d like al recipke for all those.
    Case in point, in the event that you should create small delighted familly, we end
    up needing menu in order that we could get ready your ways of allow it to be become a reality.

    Same using Recipe pertaining to meal, to generate delicious foods, we need formula including your
    own property and perhaps you, to get ready and also provide good along with delectable meal.

  7. I’m really loving the theme/design of your blog. Do you ever run into
    any browser compatibility issues? A handful of
    my blog audience have complained about my site not operating correctly in Explorer but looks great in Opera.
    Do you have any recommendations to help fix this issue?

  8. My friend advisable I would maybe similar to this blog. He / she had been entirely perfect. The following placed really designed this evening.. visa for zambia You simply can’t look at substantial amount I had put together put in due to this facts! Many thanks!

  9. Dorthea says:

    We now have atomic digital watches with built in calculators, barometers and solar technology that sit nice and snug on our wrist.
    During the event life cycle of the Casio G Shock technology, there are 200 experimental prototypes developed for endurance testing.
    And since it is powered by Tough Solar Power and features Power Saving Functions,
    you’re guaranteed that watch will never die on you.

  10. It has develop into a regular weight loss plan for all people in the west and in Asia.

    As you play the game you have many different decorative items that become available
    for your farm. Everything that goes in your box and out the door frees up space
    in your home and helps out a good cause.

Leave a Reply

About Us

Global Artwork is a collection of contract web developers, designers, UX consultants and general webby people.

We have all worked together at various stages of our careers at the top of the industry, on some of the best clients. We don't wan't mainstream. You don't want mainstream. The web doesn't do mediocre - neither should you.

If you have an interesting project, swing by and ask us for advice.

more >>