Make WordPress Core

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#12000 closed enhancement (duplicate)

Wordpress MU Needs an option to formally allow enabling www for TLDs.

Reported by: wpmuguru's profile wpmuguru Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Multisite Keywords:
Focuses: Cc:

Description

MU Trac Ticket: http://trac.mu.wordpress.org/ticket/1105

tested on version 2.8.4a (not available in the Version menu)

example:

I have a fresh WPMU instance set up to work with paths. Base install location is set to

http://example.com/

I have a blog set up on http://example.com/site/ and a post that is accessible at

http://example.com/site/blog/2009/09/01/hello-world/

If I add a www. into this path, like this:

http://www.example.com/site/blog/2009/09/01/hello-world/

WPMU will redirect to

http://example.com/site/

Expected behavior is to redirect to

http://example.com/site/blog/2009/09/01/hello-world/

The fix is a one-liner: line 167 in wpmu-settings:

header( "Location: http://" . $current_site->domain . $current_site->path );

change to:

header( "Location: http://" . $current_site->domain . $_SERVER['REQUEST_URI'] );

The patch is attached.

Change History (2)

#1 @wpmuguru
14 years ago

  • Resolution set to duplicate
  • Status changed from new to closed

see #11945

#2 @nacin
14 years ago

  • Milestone Unassigned deleted
Note: See TracTickets for help on using tickets.