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

Disable Pagespeed

On our shared servers, we have pagespeed module enabled in nginx (the front web server).  This...

MSSQL Transaction Log Shrink via MSSQL manager / mylittleadmin

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

What is an SSL certificate?

An SSL certificate encrypts data that is sent between the server and you, your computer, your...

Frontpage Publishing via FTP

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

Point domain to specific directory via rewrites

If you have a script installed at /example.com and you want http://example.com/ to show the...