[wp-trac] [WordPress Trac] #23073: Wrong RewriteRule in a local Multisite installation
WordPress Trac
noreply at wordpress.org
Thu Apr 17 18:00:37 UTC 2014
#23073: Wrong RewriteRule in a local Multisite installation
-------------------------------------------------+-------------------------
Reporter: Guy_fr | Owner:
Type: defect (bug) | markjaquith
Priority: normal | Status: closed
Component: Multisite | Milestone: 3.5.1
Severity: normal | Version: 3.5
Keywords: has-patch needs-testing needs-unit- | Resolution: fixed
tests | Focuses:
-------------------------------------------------+-------------------------
Comment (by wycks):
I just ran into this problem on WAMP, I was unable to get 23073.7.2.diff
to work. Changing the rewrite rules directly as seen in the ticket does
work.
Stats:
Windows 8
WAMP Version 2
Core in ''/multisite''
Network site uses ''/en''
{{{
Url: http://dev.work/multisite
ABSPATH: D:\Sites\MultiSite/
$_SERVER['SCRIPT_FILENAME']: D:/Sites/MultiSite/wp-admin/network/index.php
$_SERVER['DOCUMENT_ROOT'] D:/Sites
get_home_path D:/Sites/MultiSite/
get_option('siteurl') http://dev.work/multisite
get_option('home') http://dev.work/multisite
}}}
http: //dev.work/multisite - works fine
http: //dev.work/multisite/en - returns 403 for assets.
Example CSS url:
http: //dev.work/multisite/en/wp-
content/themes/twentyfourteen/style.css?ver=3.9
Error: You don't have permission to access /multisite/D:/Sites/MultiSite
/wp-content/themes/twentyfourteen/style.css on this server.
Recommended by WP does not work:
{{{
#RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*)
D:/Sites/MultiSite/$2 [L]
#RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ D:/Sites/MultiSite/$2 [L]
}}}
This works:
{{{
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*)
/multisite/$2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ /multitest/$2 [L]
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/23073#comment:48>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list