WordPress.org

Make WordPress Core

Opened 6 weeks ago

Last modified 5 weeks ago

#48197 new feature request

Add support for assigning multiple domains to a single site in multisite

Reported by: juanfry Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Networks and Sites Keywords: 2nd-opinion reporter-feedback close
Focuses: multisite Cc:
PR Number:

Description

Hello,

We are using the [native domain mapping|https://wordpress.org/support/article/wordpress-multisite-domain-mapping/] from WordPress in our latest sites and it works like a charm.

I would like to request if a multidomain mapping could be done in core WordPress. We have several clients with more than one domain pointing to the same website.

Kind regards,

Juanfran Granados

Change History (3)

#1 @knutsp
6 weeks ago

  • Component changed from Administration to Networks and Sites
  • Keywords 2nd-opinion reporter-feedback added
  • Summary changed from Hello, We are using the native domain mappinghttps://wordpress.org/support/article/wordpress-multisite-domain-mapping/ to Hello, We are using the native domain mapping https://wordpress.org/support/article/wordpress-multisite-domain-mapping/

Hello, @juanfry and very welcome to Trac!

Thank you for the suggestion!

My question will be, since you say the plugin "works like a charm", you want it in core?

Since Multisite does not need Domain Mapping to handle different domains on each site, and since www-forwarding is a common and free service on domain registrars, the need to let more than one domain point to the same site quite an edge case. Such functionality is usually best served a plugin, IMO.

I used Domain Mapping until eight years ago, but ripped it out once WordPress Multisite became more flexible and easy to configure on different domains, extracting the mapping of more than one domain to same site as to a simple forwarder outside WP. Yet, I acknowledge that such forwarders only work with http, not https.

Still, this may be a good idea, since it's a simple thing to do, at least if it can be done without extra tables.

#2 @earnjam
6 weeks ago

  • Keywords close added
  • Summary changed from Hello, We are using the native domain mapping https://wordpress.org/support/article/wordpress-multisite-domain-mapping/ to Add support for assigning multiple domains to a single site in multisite

In general domain redirects can be handled using web server level directives (.htaccess, etc), or the sunrise.php file. There are also some domain mapping type plugins that can handle multiple domain assignments like this, such as Mercator and WP Site Aliases.

I personally would lean toward this functionality remaining external, but I'll defer to the Network & Sites component maintainers.

#3 @juanfry
5 weeks ago

Thanks, for the replies.

@knutsp, @earnjam, yes, what I would like to know is if that feature makes sense in the core.

Note: See TracTickets for help on using tickets.