Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#12332 closed defect (bug) (fixed)

Path rewrites on Multisite with subdirectories (htaccess)

Reported by: automaton's profile automaton Owned by: janeforshort's profile janeforshort
Milestone: 3.0 Priority: normal
Severity: normal Version: 3.0
Component: Rewrite Rules Keywords: htaccess, rewrite, theme, subdirectory
Focuses: multisite Cc:

Description

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]

Change History (4)

#1 @automaton
15 years ago

Solved.

The .htaccess file needs to be in /wp/, not the site root. This contradicts the info in the installation instructions, though.

#2 @wpmuguru
15 years ago

  • Owner changed from ryan to janeforshort
  • Status changed from new to assigned

Jane,

Assigning this to you so this gets included in the UX work.

#3 @wpmuguru
15 years ago

(In [13466]) add full file paths in network install, see #12332

#4 @wpmuguru
15 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

The UI has been cleaned up. If this resurfaces as an issue, it can be reopened.

Note: See TracTickets for help on using tickets.