[wp-trac] [WordPress Trac] #17168: redirect loop when accessing wp-admin/network/

WordPress Trac wp-trac at lists.automattic.com
Thu Aug 9 18:39:47 UTC 2012


#17168: redirect loop when accessing wp-admin/network/
-------------------------------------+------------------------------
 Reporter:  chaos1                   |       Owner:
     Type:  defect (bug)             |      Status:  reopened
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Multisite                |     Version:  3.1.1
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------------------
Changes (by tobias):

 * cc: t@… (added)


Comment:

 We had the same or very similar problem with our multisite-installation
 that runs behind a apache rewrite rule. We ended up overwriting the
 {{{$_SERVER[ 'HTTP_HOST' ]}}} to work around it. See
 http://wordpress.org/support/topic/err_too_many_redirects-nur-unter-wp-
 adminnetwork for a complete description of the problem and solution.

 I thing the best way to solve this in general ist, not to use variables
 like HTTP_HOST at all in the core but to base all core-feature on a
 variable like DOMAIN_CURRENT_SITE. Or if this is multisite-specific, then
 something similar that works for every site. It could also be a simple
 default inside wp-config with domain_current_site defaulting to http_host.
 This way it is only one place to fix the redirecting-problem. – Like this:
 {{{define('DOMAIN_CURRENT_SITE', '$_SERVER[ 'HTTP_HOST' ]');}}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17168#comment:15>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list