Make WordPress Core

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#23808 closed enhancement (wontfix)

allow multisite to match bare URL

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

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 13 years ago.

Download all attachments as: .zip

Change History (4)

@fuentez
13 years ago

#1 @SergeyBiryukov
13 years ago

  • Version trunk3.5

#2 @Ipstenu
13 years ago

  • Resolutionwontfix
  • Status newclosed

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
13 years ago

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