This is just a really quick post to hopefully help others looking to get WordPress working on a Windows based server with a specific need… you want to run WordPress in the root of an existing site that is already running a site or several virtual sites in there already.

Or put another way – you want WordPress to run alongside existing web site content and / or site(s) on Windows Server 2008 under one domain name. For example:

  1. www.mysite.com (.aspx) + Your-New-WordPress-Site(s) running as www.mysite.com/something
    1. /virtualsite (.asp)
    2. /virtualsite2 (.aspx)
IIS 7.5 WordPress in root
IIS 7.5 + WordPress + Existing site(s)

I haven’t got time to go over how to install WordPress on a Windows server (happy to do this in comments if people want help), so cutting to the chase:

  • You have all the standard WordPress files in the root and some other file type as the default document e.g. default.aspx or index.html
  • You need to get WordPress playing alongside these other sites and default documents
  • You have URL Rewrite Module 2.0 installed and working already for your other .asp, .aspx or .html content

You need to edit your web.config file so you place something like the following as the first rule:

<rewrite>
    <rules>
        <rule name="Main Rule" stopProcessing="true">
            <match url="^(MainBlogCategory|tag|page|author|feed|OtherCategories)(.*)$" ignoreCase="false" />
            <action type="Rewrite" url="index.php" />
        </rule>
       Your Existing rules continue below...

If the above makes no sense or you want more help shout below.

Thanks