Improve Wordpress permalinks in IIS7

Using Wordpress on a Windows Server with IIS7 causes the permalinks to have “index.php” in the url. An example would be “″, while this url is a valid link which will be spidered by search engines, it isn’t as esthetical as one would like.

Removing the “index.php” is rather straightforward, once you know how to. First you wan’t to add the following Web.Config to you virtual directory running the Wordpress blog. This will enable a rewriting rule in IIS7, which will rewrite every request that does not point to a physical file to “index.php”. Basicly transforming it to the way it previously worked.

<?xml version="1.0"?>
          <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" />

Once we’ve added the config we can change the permalink structure in the admin pages of Wordpress. Choose your structure and remove the “index.php” prefix, be sure to leave a slash at the beginning of the desired structure.

// Change this:

// To this for instance:

Tags: , ,

70 Responses to “Improve Wordpress permalinks in IIS7”

  1. AUSTIN says:

    negative thyroid test

    Buy_no prescription…

  2. JOEY says:

    atkins diet first week foods

    Buy_without prescription…

  3. GUY says:

    fungi amazing facts

    Buy_drugs without prescription…

  4. LUKE says:

    dog hives and what causes them

    Buy_drugs without prescription…

  5. KYLE says:

    depression amino acids

    Buy_drugs without prescription…

  6. FREDDIE says:

    childrens ibuprofen diabetes

    Buy_without prescription…

  7. STANLEY says:” rel=”nofollow”>…

    Buygeneric meds…

  8. stephanie reed says:

    short hairstyles

    Just wish to say your article is as amazing. The clearness in your post is simply excellent and i can assume you are an expert on this subject. Fine with your permission let me to grab your RSS feed to keep up to date with forthcoming post. Thanks a mi…

  9. DARRYL says:

    BUY DRUGS ONLINE : -====Allergy Cure Anthelmintics Pills < a h…

    Order Cheap Pills Today!…

Leave a Reply