Linux 软件免费装
Banner图

Multiple Domain Mapping on Single Site

开发者 matthias.wagner
更新时间 2024年7月16日 18:15
捐献地址: 去捐款
PHP版本: 4.5 及以上
WordPress版本: 6.6
版权: GPLv2 or later
版权网址: 版权信息

标签

marketing redirect seo site multiple single domainmapping mapping domain mirror landingpage multidomain

下载

1.1 0.2.1 0.2.2 1.0 1.0.1 1.0.2 1.0.3 1.0.4 0.1.1 0.1.2 1.0.5 0.1.3 0.1 0.1.3.1 0.2 1.1.1

详情介绍:

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 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.

安装:

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.

屏幕截图:

  • Additional settings page. Compatibility mode is useful for some page builders if they do not work out of the box.

常见问题:

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 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

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

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.

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 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.

更新日志:

1.1.1 1.1 1.0.4 1.0.3 1.0.2 1.0.1 1.0 0.2.2 0.2.1 0.2 0.1.3.1 0.1.3 0.1.2 0.1.1 0.1 0.0.1