Skip to main content
Agency Program Get 2× more leads and save 50% on hosting. Built for agencies ready to grow. Book a call
Multiple Domain icon

Multiple Domain

v1.0.7
by Javik · 4.8 (28 reviews)

This plugin allows you to have multiple domains in a single Wordpress installation and enables custom redirects for each domain.

10K+ active installs Updated Apr 12, 2021 Tested to 5.7.12
Try Demo Download
Pre-installed Ready in ~10s No card
Multiple Domain

About Multiple Domain

The Multiple Domain plugin allows you to have more than one domain in a single WordPress installation. It updates all links and resources on the fly to ensure that the user navigation is under the same domain. You can also set a base URL and language for each domain for further customization and SEO purposes.

Frequently asked questions

What is the purpose of the Multiple Domain plugin?
The purpose of the Multiple Domain plugin is to enable constant navigation under multiple domains in a single WordPress installation.
Does the Multiple Domain plugin support multiple themes or advanced customizations for each domain?
No, the Multiple Domain plugin does not support multiple themes or advanced customizations for each domain. It is only intended for enabling constant navigation.
What happens when there is more than one domain set in the host?
When there is more than one domain set in the host, all links and resources will point to the default domain. Multiple Domain plugin will update all links on the fly to ensure end-to-end navigation under the same domain.
Can I set a base URL for a specific domain?
Yes, you can set an optional base URL for a specific domain. This allows you to restrict a set of URLs to be available only under that domain.
Can I set a language for each domain using the Multiple Domain plugin?
Yes, you can set a language for each domain using the Multiple Domain plugin. The language will be used to add <link> tags with hreflang attribute to the document head for SEO purposes.

Changelog

1.0.7

  • Changed the author to the new one.
  • Tested suport for WP 5.7

1.0.6

  • Fix URI generated for canonical tag.

1.0.5

  • Fixed issue with system routes when a base path is defined.

1.0.4

  • Fixed assertions in admin views.

1.0.3

  • Fixed XSS vulnerability in canonical/alternate tags.

1.0.2

  • Added low memory option. (Refer to https://github.com/straube/multiple-domain/issues/45 on how to enable it)
  • Constants starting with MULTPLE_ are now deprecated. They have a matching MULTIPLE_ prefixed constant.
  • Fixed constants starting with MULTPLE_, changed to MULTIPLE.

1.0.1

  • Fixed issue with regex used in domain replacement.

1.0.0

  • Locked out instructions to readme file.
  • API to programmatically change the domains list.
  • Don’t add canonical link if settings are false.

0.11.2

  • FAQ about removal of hreflang tags.
  • Fixed bug in domain replacement when it contains a slash (the regex delimiter).
  • Fixed issue in the domain replacement regex.

0.11.1

  • Fixed URI validation when there is a domain’s base restriction.

0.11.0

  • Add CHANGELOG.md file.
  • Added option to enable canonical tags.
  • Added %%multiple_domain%% advanced variable for Yoast.
  • Moved WordPress admin features to a separate class.
  • Renamed hreflang related methods.
  • Inline documentation review.
  • Minor refactoring.
  • Fixed issue with domain replacement.

0.10.3

  • Added public method to retrieve a given (or current) domain base path: getDomainBase($domain = null).
  • Minor code refactoring.

0.10.2

  • Fix minor notice message when loading the non-mapped original domain.
  • Added FAQ about plugin settings and domains.

0.10.1

  • Fix bug introduced in 0.10.0 with setups where the original domain is not present in the plugin settings.

0.10.0

  • Fix #31: Don’t add SSL when accessing via a Tor domain name
  • Moved HTML to view files.

0.9.0

  • Fixed bug in backward compatibility logic.
  • Added a class to <body> tag containing the domain name (e.g. multipled-domain-name-tld) to allow front-end customizations.

0.8.7

  • Loading Multiple Domain before other plugins to fix issue with paths.
  • Fix #38: Missing locales on language list (this issue was reopened and now it’s fixed)
  • Refactored initAttributes method.

0.8.6

  • Fix #39: Rolling back changes introduced in 0.8.4 and 0.8.5 regarding to avoid URL changes in the WP admin.

0.8.5

  • Fixed an issue introduced in 0.8.4 that breaks the admin URLs.
  • Fix #38: Missing locales on language list
  • Add [multiple_domain] shortcode to show the current language.

0.8.4

  • Fix: #36 Wrong host in URLs returned by the JSON API
  • Using singleton pattern for main plugin class.
  • Avoiding URL changes in the admin panel.

0.8.3

  • Fix: #34 hreflang tag error

0.8.2

  • Fix: #32 Image URLs not being re-written properly via Tor.

0.8.1

  • Fix: #23 Undefined index when using wp-cli.

0.8.0

  • Moved MultipleDomain class to its own file.
  • Fix: #14 Remove filter_input from plugin.
  • Attempt to fix #22.
  • Added MULTIPLE_DOMAIN_DOMAIN_LANG constant for theme/plugin customization.
  • Fix: #21 No ‘Access-Control-Allow-Origin’ header is present on the requested resource

0.7.1

  • Make the plugin compatible with PHP 5.4 again.

0.7

  • Code review/refactoring.
  • Added activation hook to fix empty settings bug.

0.6

  • Fix: #11 Redirect to original domain if SSL/https.

0.5

  • Added http/https for alternate link.

0.4

  • Fixed resolving host name to boolean.
  • Added Reflang links to head for SEO purpose. E.g.

0.3

  • Fixed bug when removing the port from current domain.
  • Added MULTIPLE_DOMAIN_ORIGINAL_DOMAIN constant to hold the original WP home domain.
  • Allowing developers to create custom URL restriction logic through multiple_domain_redirect action.
  • Improved settings interface.

0.2

  • Improved port verification.
  • Added MULTIPLE_DOMAIN_DOMAIN constant for theme/plugin customization.
  • And, last but not least, code refactoring.

0.1

This is the first release. It supports setting domains and an optional base URL for each one.

Try other plugins

Yoast SEO icon

Yoast SEO

4.8 · 10M+ installs

Improve your WordPress SEO: Write better content and have a fully optimized WordPress site using the Yoast SEO…