[wp-testers] 404 error page redirect not working for

Philip M. Hofer (Frumph) philip at frumph.net
Sun May 9 18:24:47 UTC 2010


Nacin, probably not the perfect person for this one, although the diff looks 
good, there's one url rewrite code that's messing with me, basically both 
sets in the .diff work great except the subdomain one has one issue.

On the MAIN site, not subdomain (subdomains are working fine)  but the 404 
redirect on the MAIN site does not work.

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="WordPress Rule 1" stopProcessing="true">
                    <match url="^index\.php$" ignoreCase="false" />
                    <action type="None" />
                </rule>
                <rule name="WordPress Rule 2" stopProcessing="true">
                    <match url="^files/(.+)" ignoreCase="false" />
                    <action type="Rewrite" 
url="wp-includes/ms-files.php?file={R:1}" appendQueryString="false" />
                </rule>
                <rule name="WordPress Rule 3" stopProcessing="true">
                    <match url="^" ignoreCase="false" />
                    <conditions logicalGrouping="MatchAny">
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" 
ignoreCase="false" />
                        <add input="{REQUEST_FILENAME}" 
matchType="IsDirectory" ignoreCase="false" />
                    </conditions>
                    <action type="None" />
                </rule>
                <rule name="WordPress Rule 4" stopProcessing="true">
                    <match url="." ignoreCase="false" />
                    <action type="Rewrite" url="index.php" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>


----- Original Message ----- 
From: "Andrew Nacin" <wp at andrewnacin.com>
To: <wp-testers at lists.automattic.com>
Sent: Sunday, May 09, 2010 8:10 AM
Subject: Re: [wp-testers] 404 error page redirect not working for


> IIRC this happened under older MU .htaccess rewrite rules. We've
> changed them in 3.0.
>
> If this was an MU to 3.0 upgrade, you'll probably want to manually
> update the rules. If you're running a subdomain install, you don't
> even need the ones that are messing with this.
>
> Unfortunately, rules are dynamically generated, and I think Tools >
> Network is blocked for MU-upgraded sites as it is useless. But I guess
> we should open that up for now so the newer rules can be displayed.
>
>
> On 5/9/10, Philip M. Hofer (Frumph) <philip at frumph.net> wrote:
>> The 404 error page is not being redirected to if someone has a wp- at the
>> beginning of the bad URI line
>>
>> - phil
>> _______________________________________________
>> wp-testers mailing list
>> wp-testers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-testers
>>
> _______________________________________________
> wp-testers mailing list
> wp-testers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-testers
> 



More information about the wp-testers mailing list