Make WordPress Core

Opened 12 years ago

Closed 11 years ago

Last modified 11 years ago

#23808 closed enhancement (wontfix)

allow multisite to match bare URL

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

Description

Currently, when matching the requested URL to a blog, the "domain" and "path" are used together. When there is no match, no blog will be selected. $path can never be interpreted as just "/".

This makes it impossible to have multiple domains working from the root "/" pointing to separate blogs.

The attached patch makes this possible.

A little more in-depth explanation can be found here:
http://wordpress.org/support/topic/allow-multisite-to-match-bare-url?replies=4

Attachments (1)

patch.txt (634 bytes) - added by fuentez 12 years ago.

Download all attachments as: .zip

Change History (4)

@fuentez
12 years ago

#1 @SergeyBiryukov
12 years ago

  • Version changed from trunk to 3.5

#2 @Ipstenu
11 years ago

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

When you say you needed this to 'convert' your URLs, it's a little strange.

This was a summary from the example you posted in the forums:

developurl.com/site-a-nl to site-a.com
developurl.com/site-a-en to site-a.com/en
developurl.com/site-a-ru to site-b.com/ru
developurl.com/site-b-nl to site-b.com
developurl.com/site-b-en to site-b.com/en
developurl.com/site-b-ru to site-b.com/ru

It really feels like this is an edge case, where you set up a Multisite one way only to want to move it to a totally different way. As you noted in the post, this really should have been done with the domain mapping plugin (and probably a multi-network plugin for the sub-sites per mapped domain).

Suggesting #wontfix - please reopen this if you think it still needs to be worked on.

#3 @SergeyBiryukov
11 years ago

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