[wp-testers] rewrite rules in the top level directory

Michael Hampton error10 at gmail.com
Fri Nov 11 04:32:59 GMT 2005


Exactly what are you going to search for, if the request is for the root
page of the web site? That's pretty obvious. But /blog/ is not the root
page, and WP has to be able to make the distinction there. Yes, it's
convoluted code, but it works. :)

On 11/10/05, Austin Matzko <if.website at gmail.com> wrote:
>
> 1.6 only executes the rewrite rules if a number of conditions are met,
> including this: "('/' != $_SERVER['REQUEST_URI'])" (see
> wp-includes/classes.php).
>
> In other words, if WP is in www.example.com/ <http://www.example.com/> and
> someone requests that
> page, no rewrite rules will be considered.
>
> However, if WP is in www.example.com/blog/ <http://www.example.com/blog/>and someone requests that
> page, the rewrite rules WILL be considered.
>
> Can anyone explain why this condition exists? It seems arbitrary, and
> I'd like to submit a patch to remove it.
>
> Austin
> _______________________________________________
> wp-testers mailing list
> wp-testers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-testers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://comox.textdrive.com/pipermail/wp-testers/attachments/20051111/56d03f2e/attachment.htm


More information about the wp-testers mailing list