[wp-trac] [WordPress Trac] #31664: Multisite network setup for .htaccess

WordPress Trac noreply at wordpress.org
Wed Sep 23 12:43:52 UTC 2015


#31664: Multisite network setup for .htaccess
--------------------------------+------------------------------
 Reporter:  wph4                |       Owner:
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  Networks and Sites  |     Version:  4.1.1
 Severity:  normal              |  Resolution:
 Keywords:                      |     Focuses:  multisite
--------------------------------+------------------------------

Comment (by mbootsman):

 Replying to [comment:2 slackbot]:
 > ''This ticket was mentioned in [https://make.wordpress.org/chat/ Slack]
 in #core by mbootsman.
 [https://wordpress.slack.com/archives/core/p1443011764003302 View the
 logs].''

 Using 4.3.1
 Created network (directory based)
 Used presented code in .htaccess from /wp-admin/network.php line 514 and
 further

 This resulted in redirection loops

 Fixed it by using this .htaccess code:

 {{{
 # BEGIN WordPress

 <IfModule mod_rewrite.c>

 RewriteEngine On
 RewriteBase /
 RewriteRule ^index\.php$ - [L]

 # add a trailing slash to /wp-admin
 RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [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]

 </IfModule>

 # END WordPress
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31664#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list