[wp-trac] [WordPress Trac] #23073: Wrong RewriteRule in a local Multisite installation
WordPress Trac
noreply at wordpress.org
Fri Dec 28 21:59:47 UTC 2012
#23073: Wrong RewriteRule in a local Multisite installation
-----------------------------+--------------------------
Reporter: Guy_fr | Type: defect (bug)
Status: new | Priority: normal
Milestone: Awaiting Review | Component: Multisite
Version: 3.5 | Severity: major
Keywords: |
-----------------------------+--------------------------
- WampServer on Windows 8
- Install Wordpress in a subdirectory of the document root(here a
directory "multitest")
- Setup multisite in subfolder mode.
Rules displayed for .htaccess in the wordpress textarea of the network
page are:
{{{
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*)
c:\wamp\www\multitest/$2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ c:\wamp\www\multitest/$2 [L]
}}}
Result in the browser window of a subsite admin board is an error:
Forbidden You don't have permission to access
/multitest/C:wampwwwmultitest/wp-admin/ on this server.
For the subsite itself, at least paths for css are broken.
RewriteRules should be:
{{{
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*)
/multitest/$2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ /multitest/$2 [L]
}}}
Looking at code source in network.php, I fixed it for my personal use by
adding: $rewrite_base = $base; before the htaccess code is displayed to
users.
This could be done with local multisite installation only.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23073>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list