﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
23073,Wrong RewriteRule in a local Multisite installation,Guy_fr,markjaquith,"- 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.
",defect (bug),closed,normal,3.5.1,Multisite,3.5,normal,fixed,has-patch needs-testing needs-unit-tests,wpmuguru
