WordPress.org

Support

Support » How-To and Troubleshooting » URL Rewrite IIS Module leading to Home Page Error

URL Rewrite IIS Module leading to Home Page Error

  • Hi guys (‘n’ gals)

    I’ve used this rule for a few sites (changing the domain of course) and while it works perfectly for tidying up my URLs on one site, on two others it leads to the homepage / leading to a 404, whereas /index.php works perfectly.

    Can anyone tell me how to prevent the rule from messing up the homepage?

    <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>

    Many thanks

    Ali

Viewing 15 replies - 1 through 15 (of 15 total)
Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘URL Rewrite IIS Module leading to Home Page Error’ is closed to new replies.