Multiple Domain
This plugin allows you to have multiple domains in a single Wordpress installation and enables custom redirects for each domain.
Next Milestone 20K
Unlock Exact Install Count
See the precise estimated active installs for this plugin, calculated from real-time ranking data.
- Exact install estimates within tiers
- Track install growth over time
- Milestone progress predictions
Rank Changes
Downloads Growth
Upgrade to Pro
Unlock 30-day, 90-day, and yearly download history charts with a Pro subscription.
Upgrade NowReviews & Ratings
Tracked Keywords
Showing 2 of 2Unlock Keyword Analytics
Track keyword rankings, search positions, and discover new ranking opportunities with a Pro subscription.
- Full keyword position tracking
- Historical ranking data
- Competitor keyword analysis
Track This Plugin
Get detailed analytics, keyword tracking, and position alerts delivered to your inbox.
Start Tracking FreePlugin Details
- Version
- 1.0.7
- Last Updated
- Apr 11, 2021
- Requires WP
- 4.0+
- Tested Up To
- 5.7
- PHP Version
- N/A
- Author
- goINPUT IT Solutions
Support & Rating
- Rating
- ★ ★ ★ ★ ★ 4.8
- Reviews
- 28
- Support Threads
- 0
- Resolved
- 0%
Keywords
Upgrade to Pro
Unlock keyword rankings, search positions, and detailed analytics with a Pro subscription.
Upgrade NowFrequently Asked Questions
Common questions about Multiple Domain
explaining the feature and how it would help the users before start writing your code.
You can send donations over PayPal to paypal@goinput.de.
Does this plugin set extra domains within my host?
No. You have to set additional domains, DNS, and everything else to use this plugin.
Can I have a different theme/content/plugins for each domain?
Nope. If you want a complex set up like this, you may be interested in WordPress Multisite. It's delivered with every
WordPress installation since 3.0, you can find more info here: https://codex.wordpress.org/Create_A_Network.
There is a way to add domain based logic to my themes?
Absolutely. You can use the MULTIPLE_DOMAIN_DOMAIN and MULTIPLE_DOMAIN_ORIGINAL_DOMAIN constants to get the current
and original domains. Just notice that since the value of the first one is checked against plugin settings, it may not
reflect the actual domain in HTTP_HOST element from $_SERVER or user's browser. They also may include the host port
when it's different than 80 (default HTTP port) or 443 (default HTTPS port).
Notice: in prior versions these constants were wrongly prefixed with MULTPLE_, missing the "I". The old constants
are now deprecated. They still available for backcompat but will be removed in future releases.
Can I create a custom access restriction logic for each domain?
Yes. You can use the multiple_domain_redirect action to do that. Please check
https://github.com/straube/multiple-domain/issues/2 for an example on how to do that.
Can I get the language associated with the current domain?
Yes. You can use the MULTIPLE_DOMAIN_DOMAIN_LANG constant to get the language associated with the current domain. Keep
in mind the value in this constant doesn't necessarily reflect the actual user language or locale. This is just the
language set in the plugin config. Also notice the language may be null.
Notice: in prior versions these constants were wrongly prefixed with MULTPLE_, missing the "I". The old constants
are now deprecated. They still available for backcompat but will be removed in future releases.
Can I show the current domain in the content of posts or pages?
Yes. There is a shortcode available for that. Just add [multiple_domain] to the post/page and it'll be replaced by
the current domain when viewing the content. You can write things like "Welcome to [multiple_domain]!", which would be
rendered as "Welcome to mydomain.com!".
What domains should I add to the plugin setup?
Any domain you're site is served from must be added to the plugin configuration. Even www variations and the original
domain where your WordPress was installed in must be added. You'll probably see some unexpected output when accessing
the site from a non-mapped domain.
Can I disable `hreflang` tags output even for the original domain?
Yes. You may notice that even if you don't set a language for any domain, you still get a default hreflang tag in
your page head. To disable this behavior, follow the instructions from
https://github.com/straube/multiple-domain/issues/51.
I locked myself out, and what am I doing now?
Under certain circumstances, in the case of a wrong configuration, you may not be able to log in to the admin area
and your page will be redirected. In this case, there are two ways to solve this.
Delete the plugin directory wp-content/plugins/multiple-domain. You should be able to do that from the hosting
panel, from an FTP client, or via SSH. The downside of this technique is that it won’t be possible to install the
plugin again since the configuration will still be in the database.
Remove the plugin configuration from the database using the following SQL query DELETE FROM {YOUR-PREFIX}_options
WHERE option_name LIKE 'multiple-domain-%'; (Remember to replace the prefix from your own table name). This can be
done from the hosting panel when PHPMyAdmin is available or using a MySQL client.