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 create a .htaccess file

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

MSSQL Transaction Log Shrink via MSSQL manager / mylittleadmin

To shrink the MSSQL transaction log via mylittleadmin / mssql manager, do the following...

http Error codes

The following are http status and error codes that are returned for each file access via a web...

http Error codes

The following are http status and error codes that are returned for each file access via a web...

Frontpage Publishing via FTP

Frontpage extensions are not supported on our servers due to bugs in the extensions (some...