[wp-trac] [WordPress Trac] #15083: Apache rewrite loop on subdirectory install
WordPress Trac
wp-trac at lists.automattic.com
Sat Oct 9 22:02:04 UTC 2010
#15083: Apache rewrite loop on subdirectory install
--------------------------+-------------------------------------------------
Reporter: wpmuguru | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Multisite | Version:
Severity: normal | Keywords: has-patch
--------------------------+-------------------------------------------------
Description changed by wpmuguru:
Old description:
> If a requested file under the wp-content directory does not exist, this
> creates a rewrite loop for the file. Let's say {{{/subsite/wp-
> content/themes/theme-x/images/abc.gif}}} does not exist, then the rewrite
> that is invoked is:
>
> {{{RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2
> [L]}}}
>
> The first rewrite pass rewrites the url to {{{/subsite/wp-
> content/themes/theme-x/images/abc.gif}}} which also does not exist.
> However, the rewritten request still matches the rewrite rule because the
> question mark {{{^([_0-9a-zA-Z-]+/)?}}} makes it so the rewrite rule also
> applies to {{{/wp-content/themes/theme-x/images/abc.gif}}}.
New description:
If a requested file under the wp-content directory does not exist, this
creates a rewrite loop for the file. Let's say {{{/subsite/wp-
content/themes/theme-x/images/abc.gif}}} does not exist, then the rewrite
that is invoked is:
{{{RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2
[L]}}}
The first rewrite pass rewrites the url to {{{/wp-
content/themes/theme-x/images/abc.gif}}} which also does not exist.
However, the rewritten request still matches the rewrite rule because the
question mark {{{^([_0-9a-zA-Z-]+/)?}}} makes it so the rewrite rule also
applies to {{{/wp-content/themes/theme-x/images/abc.gif}}}.
--
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15083#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list