Multiple Domain Mapping on Single Site

Von Matthias Wagner – FALKEmedia

Support

Installation

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