web.config for iis7

web.config iis7

  • Patrick

    Hi there @julie_ferguson

    Welcome to the forums, glad to have you aboard!

    I've never used IIS myself, but a colleague who has assures me that this should work for you:

    <?xml version="1.0"?>
    <configuration>
      <system.webServer>
        <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" />
            </rule>
          </rules>
        </rewrite>
      </system.webServer>
    </configuration>

    For more on configuring IIS, please be sure to check out this page n the codex:
    http://codex.wordpress.org/Using_Permalinks#Permalinks_without_mod_rewrite

    I hope this helps! And thanks for being a member :slight_smile:

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.