Title: Multiple Domain Mapping on Single Site
Author: matthias.wagner
Published: <strong>27 ژوئن 2016</strong>
Last modified: 16 آوریل 2025

---

جستجوی افزونه‌ها

![](https://ps.w.org/multiple-domain-mapping-on-single-site/assets/banner-772x250.
png?rev=1595238)

![](https://ps.w.org/multiple-domain-mapping-on-single-site/assets/icon-256x256.
png?rev=1595238)

# Multiple Domain Mapping on Single Site

 توسط [matthias.wagner](https://profiles.wordpress.org/matthiaswagner/)

[دانلود](https://downloads.wordpress.org/plugin/multiple-domain-mapping-on-single-site.1.1.1.zip)

 * [جزئیات](https://fa.wordpress.org/plugins/multiple-domain-mapping-on-single-site/#description)
 * [نقد و بررسی‌ها](https://fa.wordpress.org/plugins/multiple-domain-mapping-on-single-site/#reviews)
 *  [نصب](https://fa.wordpress.org/plugins/multiple-domain-mapping-on-single-site/#installation)
 * [توسعه](https://fa.wordpress.org/plugins/multiple-domain-mapping-on-single-site/#developers)

 [پشتیبانی](https://wordpress.org/support/plugin/multiple-domain-mapping-on-single-site/)

## توضیحات

#### What does this plugin do?

This lightweight plugin maps domains to specific URIs in your blog or website. It
allows you to add as many mappings, e.g. for landingpages, as you want.
 Just let
the domains point to your WordPress installation (see the installation tab for details)
and decide which URI the plugin should map them to.

#### What is this plugin for?

The main purpose of the plugin is to have specific domains show the content of specific
pages from a bigger website. This is especially needed for marketing and SEO purposes(
landingpages). Think of a site-structure like

 * www.mainsite.com
 * www.mainsite.com/productA
 * www.mainsite.com/productB

With the plugin you can use an additional domain like www.productA.com to point 
to your site’s www.mainsite.com/productA.
 It is **not a redirection**, instead 
the additional domain will display the content from the specified page (the additional
domain will be visible in the browsers address bar).

#### What is this plugin not for?

It is not our goal to mirror complete websites to additional domains. You can try
to do this, but keep the aspects of duplicate content in mind. In the help section
of the installed plugin we provide links to other plugins who may be better at this
task.

#### Which Pages, Post Types, … does the plugin support?

The plugin lets you define URIs to map to, so it works for pages, posts, custom 
post types, archives and so on. The plugin also changes hyperlink destination of
the links inside your website. For example: navigation, pagination, archive links
and so on. (Note: This only works if your theme and other link-generating plugins
use standard WordPress functions like get_permalink).

So you will not have to select posts to map to your domains, but instead enter URIs.
See the screenshots for examples.

#### Is it hard to set up?

The plugin requires additional steps in setting up your domains and hosting environment(
see the installation-tab for details). If you are not familiar with these settings,
it can happen that you have troubles with reaching your website. Therefore you should
only set up the plugin in a testing environment if you are not sure if you can deal
with these external settings.

We give our best to support you, but if you have troubles with correct DNS records
and hosting environment settings, you should talk to your hosting provider or your
web developer first.

#### Troubles?

Please see installation-tab, FAQ and the already answered support threads for more
information or if you have troubles setting up the plugin.

#### PREMIUM

We have partnered with the plugin “Domain Mapping System” to be able to provide 
plugins for different use cases. Since they offer a paid version, they will also
be able to provide you professional support. You want to benefit from special deals
and coupons for the other plugin? [Find more information here.](https://www.falkemedia.at/multiple-domain-mapping-on-single-site-premium/)

## عکس‌های صفحه

 * [[
 * The main settings page configured with two additional domains for landingpages.
   No need to add multiple lines with www/non-www and http/https since version 1.0
 * [[
 * Additional settings page. Compatibility mode is useful for some page builders
   if they do not work out of the box.

## نصب

#### 1. External Setup

Make sure that the domains you want to use already point to your WordPress installation
root. This requires two steps:

 1. The A-Records of the used domains must have the same IP address assigned as your
    main domain. This is usually done in the DNS-Settings of your domain registrar.
 2. In your hosting environment, you must configure all domains to point into the same
    directory as your main domain (usually your WordPress root directory). This is 
    usually called virtual hosting, multidomain, domain mapping, domain alias, …
 3. Test
     3.1 Place a test.txt file with content “test” in your root folder. You should
    be able to see that file in your browser when calling “yourmaindomain.com/test.
    txt”. 3.2 Clear your browser cache 3.3 You should also be able to see that file
    in your browser when calling “youraddondomain.com/test.txt” without any redirections
    happening.
 4. Only proceed, if that test works. Otherwise you still have to work on your server/
    hosting configuration (!)

#### 2. Plugin Installation

 1. Upload plugin-folder to your “/wp-content/plugins/” directory.
 2. Activate the plugin through the Plugins-menu in WordPress.

#### 3. Plugin Setup

If you are working on a nginx-Server, you should change the plugin-setting “PHP 
Server-Variable” to “HTTP_HOST” radio button.

After you have the “External Setup” complete, all your domains will redirect to 
your WordPress home page in the main url.

 * If not, do NOT start to enter mappings in the plugin options – it will make troubleshooting
   worse.,
 * Disable/Clear your browser cache and also website caching plugins while setting
   everything up
 * Make sure to only use compatible server-side caching plugin and with the correct
   settings (see [FAQ](https://de.wordpress.org/plugins/multiple-domain-mapping-on-single-site/#faq-header)),
   since some of those plugins do not work with our domain mapping plugin.
 * Now begin to enter your domains and the URIs they should match in the settings,
   located in the Tools-Menu. See screenshots for examples.

## سوالات متداول

### Does it work with caching plugins?

So far we only know WP Fastest Cache to work out of the box. Also W3 Total Cache
is able to work with our plugin, but it requires some settings:
 * In “General Settings”
from W3TC, you can enable the page cache * In “Page Cache” W3TC, you need no enable
the “Cache alias hostnames” checkbox and leave the “Additional home URLs” field 
empty!

For W3 Total Cache, keep in mind that CSS/JS combine and minify will only work for
pages of your main domain but not for mapped pages. We recommend WP Fastest Cache
😉

### Does it work with pagebuilders?

Yes. We use Elementor mostly and it works also on mapped pages or posts. If you 
use another page builder and have troubles, try to activate the enhanced compatibility
mode in the settings page (see screenshot #2).

### What about duplicate content?

You should always aim to have only one URI connected to one specific (landing-)page
or post. If you use our plugin, the mapped content will be reached with the additional
domain and the original URI as well. Therefore you should set up a 301-redirection
from the original URI to the new domain or use the canonical meta-Tag. If you use
Yoast SEO, it will generate the correct canonical-Tag for you right out of the box.
For the redirection, there are many famous plugins out there…

### Does it support german “Umlaute” like ä/ö/ü inside domains?

Yes. But you have to define these domains in the IDN format. For example the domain
_www.küche.at_ would need to be put in as _www.xn--kche-0ra.at_. You can use the
[Verisign IDN Conversion Tool](https://www.verisign.com/en_US/channel-resources/domain-registry-products/idn/idn-conversion-tool/index.xhtml)
to find out these representation for your domains.

### Does it support https – connections?

Yes. But do not try to have a certificate only for an additional domain but not 
for the main domain or vice versa: Browsers will detect mixed content or non-existing
certificates and display security warnings.

So you must have all or none of your domains SSL-secured. Mapped pages will be linked
with the same protocol as the main domain.

### Is it compatible with Yoast SEO?

Yes.

### Does it work with the WordPress-Sitemap or Yoast SEO Sitemap?

Yes. Instead of those original URLs, the sitemap shows the mapped domains.

Sometimes it is necessary to disable and re-enable XML-Sitemap functionality in 
the Yoast SEO settings as well as flushing your permalinks in order to reflect the
mappings.

BUT there is one disadvantage so far: We do not provide a new sitemap for each mapping.
This would be better for SEO, so you can handle a new domain in a different Property
in Google Search Console. We will try to find a solution for that problem.

### Is it compatible with WooCommerce?

Unfortunately not – some parts work, some not. It is difficult to find out and by
now we do not see a chance for us to take the time needed for good support and compatibility.
WooCommerce seems to use a lot of link-generating functions that are not in WordPress
core. This seems to be necessary for different product types and so on. On top, 
also the XML sitemaps from Yoast SEO display some links mapped and some not.

If you want to use custom domains for parts of your WooCommerce store, this plugin
is probably not (yet) the right decision.

### Is it compatible with WPML/PolyLang/…?

Generally we do not offer compatibility with these plugins yet, since they have 
their own functionality to use additional domains for specific languages. This is
something we are going to test out in more detail for future versions.

If you have set up your multilanguage-plugin (like WPML or Polylang) to automatically
forward users to the page that represents the browser-language, it is very likely
that this will not work with the domain mapping plugin.

### Is it compatible with a WordPress Multisite installation?

So far this plugin is only developed to map domains on a single-site installation.
Multisite has the ability to use different domains per website already built in.
If you are not sure if you should use a single- or multisite installation, please
refer to the WordPress Codex:
 _If you plan on creating sites that are strongly 
interconnected, that share data, or share users, then a multisite network might 
NOT be the best solution._ from [WordPress Codex](https://codex.wordpress.org/Before_You_Create_A_Network)

### Why do my custom fonts or icons not show up?

Although the plugin changes the include paths of scripts and styles to the mapped
domains, it can happen that paths inside css-files still refer to your main domain.
If your webserver is configured to disable scripts, fonts, … from other domains,
these resources will be blocked.

Here you can see how to setup CORS to enable cross-domain ressources: [CORS-Setup](http://enable-cors.org/server_apache.html)

### How can i track cross domains with only one Google Analytics property?

This is pretty complex and we can not support you here. This article will help you:
[Cross-Domain Tracking with Google Analytics](https://developers.google.com/analytics/devguides/collection/analyticsjs/linker).

### Why am i logged out when viewing pages/posts/… with mapped domains?

If you are on the frontend of your site and logged in, it will happen that you do
not see the admin bar and seem to be logged out when viewing URIs with mapped domains.
This is because WordPress uses cookies to save the login-state. These cookies only
exist on your main domain and so they are not able to recognize you when viewing
URIs with mapped domains.

### Does it work on a nginx server?

Yes. Please stick to [this support thread regarding nginx-setup](https://wordpress.org/support/topic/support-with-wordpress-running-on-nginx-server/)
and be sure to change the “PHP Server-Variable” setting to the recommended option
for nginx. Unfortunately we cannot provide support for nginx, since we are working
with apache by default.

### I am a developer, how can i build solutions on top of the plugin?

Great. We have built in some actions and filters so you can build your own solutions
on top of our plugin. So far, we do not have a documentation online. Just search
for “falke_mdma” to find our action hooks or “falke_mdmf” to find our filter hooks.
We have tried to place good comments, so you will find out what you can achieve 
with them 🙂

### Is the plugin GDPR / DSGVO compliant?

Yes. We do not store any user data – neither from you or your visitors. Only the
settings are saved in your local database.

## نقد و بررسی‌ها

![](https://secure.gravatar.com/avatar/2b318839f18ef79da4eae4a5799ee7a76385ef812ff5f4590e211623cbc24603?
s=60&d=retro&r=g)

### 󠀁[Amazing and Simple](https://wordpress.org/support/topic/amazing-and-simple-17/)󠁿

 [Aaron](https://profiles.wordpress.org/koastalkollective/) 19 مارس 2026 1 پاسخ

Simply an amazing plugin, if you follow the instructions and have knowledge on DNS
settings this plugin is simple to setup and use, highly recommended.

![](https://secure.gravatar.com/avatar/8aa356f6c57a8ab1f253e4ab3379d91b79ed531692f6b56262f0a7f41910917e?
s=60&d=retro&r=g)

### 󠀁[Elementor and Bookly not work](https://wordpress.org/support/topic/elementor-and-bookly-not-work/)󠁿

 [imanzanonavaza](https://profiles.wordpress.org/imanzanonavaza/) 5 مارس 2026

It doesn’t work correctly with Elementor. Images aren’t displayed. It also doesn’t
work with the Bookly booking system.

![](https://secure.gravatar.com/avatar/f87496386fd8da7180dd88e8185288b79deabef019b682b179083bdf6899e2ae?
s=60&d=retro&r=g)

### 󠀁[Data storage place – is the data stored in a separate table](https://wordpress.org/support/topic/data-storage-place-is-the-data-stored-in-a-separate-table/)󠁿

 [marym3](https://profiles.wordpress.org/marym3/) 4 دسامبر 2024 1 پاسخ

Could you please provide some clarity or pointer to documentation on where are you
storing the data? whether in some table or elsewhere. Thanks

![](https://secure.gravatar.com/avatar/d142e8ee4f30a83e8f787a293070995307a3cf0aa77e6ff0fb4ea48da94a9678?
s=60&d=retro&r=g)

### 󠀁[not work](https://wordpress.org/support/topic/not-work-328/)󠁿

 [onukcode](https://profiles.wordpress.org/onukcode/) 24 مارس 2024

not work

![](https://secure.gravatar.com/avatar/bdbaa61c30d288214962f4d53ca0775ef3db35a54792626e5b8fdd6f45be67a5?
s=60&d=retro&r=g)

### 󠀁[Very helpful plugin](https://wordpress.org/support/topic/very-helpful-plugin-445/)󠁿

 [anweibel](https://profiles.wordpress.org/anweibel/) 14 مارس 2024 1 پاسخ

This plugin does its job seamlessly.

![](https://secure.gravatar.com/avatar/ca481b56965d51c2202d6b74d3e6567908a142d529dc39061546a1acef255af2?
s=60&d=retro&r=g)

### 󠀁[Great](https://wordpress.org/support/topic/great-16161/)󠁿

 [Lovro Hrust](https://profiles.wordpress.org/lovor/) 24 فوریه 2024

Great plugin. I only wished it had possibility to map whole directory – i.e. map
posts in certain custom post type to another domain. I inspected the code and saw
it went a lot of effort into this plugin.

 [ خواندن تمامی 48 نقد و بررسی‌ ](https://wordpress.org/support/plugin/multiple-domain-mapping-on-single-site/reviews/)

## توسعه دهندگان و همکاران

“Multiple Domain Mapping on Single Site” نرم افزار متن باز است. افراد زیر در این
افزونه مشارکت کرده‌اند.

مشارکت کنندگان

 *   [ matthias.wagner ](https://profiles.wordpress.org/matthiaswagner/)

[ترجمه “Multiple Domain Mapping on Single Site” به زبان شما.](https://translate.wordpress.org/projects/wp-plugins/multiple-domain-mapping-on-single-site)

### علاقه‌ مند به توسعه هستید؟

[Browse the code](https://plugins.trac.wordpress.org/browser/multiple-domain-mapping-on-single-site/),
check out the [SVN repository](https://plugins.svn.wordpress.org/multiple-domain-mapping-on-single-site/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/multiple-domain-mapping-on-single-site/)
by [RSS](https://plugins.trac.wordpress.org/log/multiple-domain-mapping-on-single-site/?limit=100&mode=stop_on_copy&format=rss).

## گزارش تغییرات

#### 1.1.1

 * Bugfix: Missing file from 1.1 release

#### 1.1

 * New feature: Custom HTML-Head-Code per mapped domain
 * New feature: Warning when amount of mappings reaches servers limits (max_input_vars)
 * Compatibility check with WordPress 6
 * Included some hints to our partnership with Domain Mapping System

#### 1.0.4

 * Bugfix causing problems with hyperlinks being altered which should not be altered

#### 1.0.3

 * Bugfix causing problems with sources from images or other included files when
   mapping subdomains

#### 1.0.2

 * Compatibility Fix for older PHP Versions

#### 1.0.1

 * Bugfix: Missing files in SVN

#### 1.0

 * Improved settings page: No need for up to 4 entries for only one domain from 
   now on. http/https and www/non-www versions are automatically detected in the
   background. We will also combine these multiple settings in the upgrade process
   for you.
 * Due to some bad data structure in the older versions, it can happen that lines
   are dropped by mistake – please check twice after updating!
 * Complete refactored code for better performance, stability and improved user 
   experience.
 * http / https is all-or-nothing now. Since there have always been troubles with
   mixed websites, you will need to have all or none of your domains SSL-secured
   now.
 * Added actions and filters for developers (see FAQ).
 * Database entries are removed on plugin deletion now.
 * Built the base for a premium-version, where we plan to offer more functionality
   on top of this plugin.

#### 0.2.2

 * Use new filter from elementor page builder so mapped sites can be edited with
   elementor again

#### 0.2.1

 * Fixed a problem with elementor support causing troubles

#### 0.2

 * Added support for Elementor Page Builder, so that Elementor loads up on mapped
   posts/pages

#### 0.1.3.1

 * removed feature: “Change various include paths (scripts, styles, images) to mapped
   domain” as it is more difficult then expected

#### 0.1.3

 * Change various include paths (scripts, styles, images) to mapped domain
 * Removed some PHP Notices
 * Added some FAQ

#### 0.1.2

 * Additional post type and archive link support
 * Better support for Yoast SEO
 * More information on installation and setup, FAQ, screenshots
 * More information for setting up mappings on the backend
 * Added compatibility settings for rare server incompatibilities
 * Bugfix when having mapping-URIs which had the same characters in the beginning

#### 0.1.1

 * Removed a function that was used for testing automatic IDN conversion, but was
   incompatible with php 5.3

#### 0.1

 * Cleaned up code
 * Cleaned up admin page
 * Removed +/- Buttons to avoid the use of JavaScript
 * Added text domain to strings
 * Added support for german _Umlaute_ as described in the FAQ
 * Added Banner and Icon
 * Moved the settings page into the Tools-section

#### 0.0.1

 * Initial release

## اطلاعات

 *  نگارش **1.1.1**
 *  Last updated **1 سال پیش**
 *  نصب‌های فعال **6,000+**
 *  نگارش وردپرس ** 4.5 یا بالاتر **
 *  Tested up to **6.8.5**
 *  زبان
 * [English (US)](https://wordpress.org/plugins/multiple-domain-mapping-on-single-site/)
 * Tags
 * [domainmapping](https://fa.wordpress.org/plugins/tags/domainmapping/)[landingpage](https://fa.wordpress.org/plugins/tags/landingpage/)
   [mapping](https://fa.wordpress.org/plugins/tags/mapping/)[multidomain](https://fa.wordpress.org/plugins/tags/multidomain/)
   [redirect](https://fa.wordpress.org/plugins/tags/redirect/)
 *  [نمایش پیشرفته](https://fa.wordpress.org/plugins/multiple-domain-mapping-on-single-site/advanced/)

## امتیازها

 4.6 از 5 ستاره.

 *  [  امتیاز 43 5-ستاره     ](https://wordpress.org/support/plugin/multiple-domain-mapping-on-single-site/reviews/?filter=5)
 *  [  امتیاز 1 4-ستاره     ](https://wordpress.org/support/plugin/multiple-domain-mapping-on-single-site/reviews/?filter=4)
 *  [  امتیاز 0 3-ستاره     ](https://wordpress.org/support/plugin/multiple-domain-mapping-on-single-site/reviews/?filter=3)
 *  [  امتیاز 0 2-ستاره     ](https://wordpress.org/support/plugin/multiple-domain-mapping-on-single-site/reviews/?filter=2)
 *  [  امتیاز 4 1-ستاره     ](https://wordpress.org/support/plugin/multiple-domain-mapping-on-single-site/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/multiple-domain-mapping-on-single-site/reviews/#new-post)

[مشاهده همه بررسی‌ها](https://wordpress.org/support/plugin/multiple-domain-mapping-on-single-site/reviews/)

## مشارکت کنندگان

 *   [ matthias.wagner ](https://profiles.wordpress.org/matthiaswagner/)

## پشتیبانی

مشکلات حل شده در دو ماه گذشته:

     1 از 1

 [مشاهده انجمن پشتیبانی](https://wordpress.org/support/plugin/multiple-domain-mapping-on-single-site/)

## کمک مالی

آیا تمایل دارید از پیشرفت این افزونه حمایت کنید؟

 [ کمک مالی به این افزونه ](https://www.matthias-wagner.at)