[wp-trac] [WordPress Trac] #23218: The suggested .htaccess rules located in `wp-admin/network/setup.php` do not work.

WordPress Trac noreply at wordpress.org
Wed Jan 16 21:17:10 UTC 2013


#23218: The suggested .htaccess rules located in `wp-admin/network/setup.php` do
not work.
-----------------------------+--------------------------
 Reporter:  conner_bw        |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  Multisite
  Version:  3.5              |   Severity:  normal
 Keywords:                   |
-----------------------------+--------------------------
 Hi

 I've installed WordPress 3.5 as multi-site on my localhost mahcine. I used
 the "Famous 5-Minute Install." + "Create a Network of WordPress Sites"
 docs. Once finished, the root blog is working fine, all the admin options
 are working fine.

 The site URL is located here:

 ''### http://localhost/~dac514/pb-externals/trunk/wp/''

 The issue is when I add a new site named "test" I get an infinite redirect
 error I.e

 ''### This web page has a redirect loop. The web page at
 http://localhost/~dac514/pb-externals/trunk/wp/test/wp-admin/ has resulted
 in too many redirects.''

 The problem is the suggested .htaccess rules are wrong.

 When I go to:

 ''### http://localhost/~dac514/pb-externals/trunk/wp/wp-
 admin/network/setup.php''

 I'm suggested:

 {{{
         RewriteEngine On
         RewriteBase /~dac514/pb-externals/trunk/wp/
         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).*)
 home/dac514/public_html/pb-externals/trunk/wp/$2 [L]
         RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ home/dac514/public_html
 /pb-externals/trunk/wp/$2 [L]
         RewriteRule . index.php [L]
 }}}


 These rules do not work. In contrast, replacing them with an old rule set
 suggested by 3.4.X works fine. I.e.

 {{{
         RewriteEngine On
         RewriteBase /~dac514/pb-externals/trunk/wp/
         RewriteRule ^index\.php$ - [L]

         # uploaded files
         RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-
 files.php?file=$2 [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).*) $1
 [L]
         RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
         RewriteRule . index.php [L]
 }}}

 Help?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23218>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list