[wp-trac] [WordPress Trac] #16328: Auto redirect to home when www is in the URL in MU
WordPress Trac
wp-trac at lists.automattic.com
Fri Jan 21 20:20:16 UTC 2011
#16328: Auto redirect to home when www is in the URL in MU
-----------------------------+------------------------------
Reporter: lelandmcfarland | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Multisite | Version: 3.0.4
Severity: major | Resolution:
Keywords: |
-----------------------------+------------------------------
Comment (by lelandmcfarland):
Here is a little more information about the bug. The reason that this bug
does not effect the addon domains is because sunshine.php handles setting
the variable $current_blog and $current_site. So because the primary
domain is not in the table wp_domain_mapping, those variables are set on
line 51 of wp-includes/ms-settings.php and then it verifies on line 97
that the value seeing if the domain column in the wp_blogs table matches
the variable $_SERVER[ 'HTTP_HOST' ]. If do not match, such as when a user
has www in the domain, Wordpress will redirect to the user to the path
given in the path column in the wp_blogs table instead of the requested
URL. I hope this helps gives some direction to the problem.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16328#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list