[wp-trac] [WordPress Trac] #12332: Path rewrites on Multisite with subdirectories (htaccess)
WordPress Trac
wp-trac at lists.automattic.com
Mon Feb 22 12:17:35 UTC 2010
#12332: Path rewrites on Multisite with subdirectories (htaccess)
---------------------------+------------------------------------------------
Reporter: automaton | Owner: ryan
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: Rewrite Rules | Version: 3.0
Severity: normal | Keywords: multisite, htaccess, rewrite, theme, subdirectory
---------------------------+------------------------------------------------
I'm trying to create a Network on www.example.com/wp3/ with sub-sites as
www.example.com/wp3/ouders and www.example.com/wp3/leraren.
Apparently, the theme paths and Dashboard (wp-admin) are not redirected
properly. When I visit www.example.com/wp3/ouders, I get the site's
content, but images and css are unreachable. Idem for
www.example.com/wp3/ouders/wp-admin.
This is the contents of .htaccess:
{{{
RewriteEngine On
RewriteBase /wp3/
#uploaded files
RewriteRule ^(.*/)?files/$ index.php [L]
RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]
# add a trailing slash to /wp-admin
RewriteCond %{REQUEST_URI} ^.*/wp-admin$
RewriteRule ^(.+)$ $1/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12332>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list