Wordpress on Windows IIS7

When installing wordpress on windows servers with IIS7, it is important to use the following web.config file.  Without it, you will see a 500 error and permlinks will not work.
<?xml version="1.0" encoding="UTF-8"?><configuration>    <system.webServer>        <httpErrors errorMode="Detailed">            <remove statusCode="404" subStatusCode="-1" />            <error statusCode="404" prefixLanguageFilePath="" path="/index.php" responseMode="ExecuteURL" />        </httpErrors><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" />            </conditions>            <action type="Rewrite" url="index.php/{R:0}" />        </rule>    </rules></rewrite>    </system.webServer></configuration>
  • 184 Users Found This Useful
Was this answer helpful?

Related Articles

How to upload / create your site.

Creating your site How you create your site depends on what you want to do with it.  You...

Standard Mail Settings

Mail Server Info: Login: Is your full email address (example@example.com) Incoming mail...

Force WWW or non-WWW

NONE SSLTo force www in your URLs, place the following in the .htaccess.RewriteCond %{HTTP_HOST}...

How to create a .htaccess file

Creating a .htaccess is easier then it sounds. You can create an .htaccess file in any text...

Sending mail via PHP / sendmail

Using PHP's mail() function and/or sendmail will sometimes cause anti-spam filters to filter out...