[wp-trac] [WordPress Trac] #23073: Wrong RewriteRule in a local Multisite installation
WordPress Trac
noreply at wordpress.org
Sat Jan 5 09:54:13 UTC 2013
#23073: Wrong RewriteRule in a local Multisite installation
------------------------------------------------------+--------------------
Reporter: Guy_fr | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.5.1
Component: Multisite | Version: 3.5
Severity: normal | Resolution:
Keywords: has-patch needs-testing needs-unit-tests |
------------------------------------------------------+--------------------
Comment (by guy_fr):
test with
[http://core.trac.wordpress.org/attachment/ticket/23073/23073.7.2.diff
23073.7.2.diff]
Conf:
- Windows Apache local virtual host (http://test_subd.loc)
- Wordpress multisite, subdomain and installed in its own dir "wp"
{{{
Global env:
$_SERVER["SCRIPT_FILENAME"]: C:/wamp/www/wordpress/test_subd/wp/wp-
admin/network/setup.php
$_SERVER["DOCUMENT_ROOT"]: C:/wamp/www/wordpress/test_subd
$document_root_fix: C:/wamp/www/wordpress/test_subd
ABSPATH: C:\wamp\www\wordpress\test_subd\wp/
$abspath_fix: C:/wamp/www/wordpress/test_subd/wp/
get_home_path(): C:/wamp/www/wordpress/test_subd/
get_option(home): http://test_subd.loc
get_option(siteurl): http://test_subd.loc/wp
local vars:
$base: /
$home_path: C:/wamp/www/wordpress/test_subd/
$wp_siteurl_subdir: wp/
$rewrite_base: wp/
}}}
file .htaccess
{{{
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# add a trailing slash to /wp-admin
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^(wp-(content|admin|includes).*) wp/$1 [L]
RewriteRule ^(.*\.php)$ wp/$1 [L]
RewriteRule . index.php [L]
}}}
Note, in the next line, url to the folder should use $abspath_fix instead
of ABSPATH:
{{{
Add the following to your wp-config.php file in
C:\wamp\www\wordpress\test_subd\wp/ above the line reading /* That’s all,
stop editing! Happy blogging. */:
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23073#comment:38>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list