WordPress.org

Ready to get started?Download WordPress

Forums

Permalinks on IIS7 with URL Rewrite Module (2 posts)

  1. madlan
    Member
    Posted 2 years ago #

    Hi all,

    I've followed the guide on setting up permalinks for wordpress on Windows\IIS7.
    They work great except for one issue; when accessing the website directly (www.website.com) I get a 404, If I append /index.php it loads fine.

    Navigating the links seems to work ok - have I missed something?

    Here's my web.config:

    <?xml version="1.0" encoding="UTF-8"?>
    <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/{R:0}" />
            </rule>
        </rules>
    </rewrite>
        </system.webServer>
    </configuration>
  2. madlan
    Member
    Posted 2 years ago #

    If I change the Permalink to /category/%category%/%postname%/ it works, has something changed in the latest version of wordpres?

Topic Closed

This topic has been closed to new replies.

About this Topic