Blog

How to Map Domains to WordPress Pages

How to Map Domains to WordPress Pages

In this tutorial, we are going to show you in 3 steps how to easily map domains to any WordPress page. It is extremely useful when you run many single-page sites and don’t want to install a separate WordPress for each site.

Let’s say you are an eBook author and you are marketing each eBook on a separate site. Typically you would install a WordPress on each domain. This can be time consuming as you would need to create a database for each site. With domain mapping, you can map any domain you own to a WordPress page (eg. you can map ‘ebook1.com’ to your page ‘/ebook1’). So you only need to install WordPress once, and continue to create unlimited pages for all of your sites.

Also, if you ever decide to change the domain name you are using, there’s an easy way to mass replace your URLs. Or perhaps you’re thinking of taking your WordPress website to the next level. Add an extra layer of security and rank higher in Google searches by adding an SSL certificate to your website.

For this tutorial on mapping domains to WordPress pages, we’ll be using a free plugin called Multiple Domain Mapping on Single Site. You’ll also need to own the domain(s) you’re going to use. With that, let’s begin!

1. Install the Plugin

  • First download the plugin zip file: Multiple Domain Mapping on Single Site
  • Login to your WP admin dashboard > go to Plugins > Add New > Upload > Choose File > select the plugin zip file > Install Now > Activate

Themify Tutorial WordPress

2. Add A Page

We’re going to be adding the page you want your domain to point to. Don’t forget to double-check the proper page URL slug you want to use.

  • WP Admin > Pages > Add New > enter in your page name > double check your URL slug > Save Draft

Themify Tutorial WordPress

3. Map Your Domains

  • Go to Tools > Multidomain > enter your domain in the first field > enter the page URL you just created > Save Mappings

Themify Tutorial WordPress

That’s it! You’ve just mapped your domain to a WordPress page. We hope you all enjoyed this foundational tutorial, and we’re getting ready to launch some more exciting features. Stay tuned.

 

13 Comments

  1. Terry
    Jul 03, 2019 @ 14:00

    Hi. We dont have to do anything on the domain side? Just change domain nameserver to main website and it will find this page automatically?

    Thanks, sorry for newbie question!

    Reply

  2. Csaba @ Themify
    Jul 03, 2019 @ 16:11

    Hi Terry,

    Yes, by following the above tutorial and if your domain’s nameserver is set to the same host as your main site it will map the domain to show the page you’ve created at Step #2.

    Reply

  3. landed
    Jul 04, 2019 @ 17:33

    This is actually pretty powerful simple and needed! Yes Terry you are right. We need to make sure the domain as well is able to reach the hosting provider system. The way I do this is in the godaddy interface (they manage my domains [I don’t host with them]) and point the domain to my hosts name servers. You can also use an ip address but I don’t do it that way.

    Reply

  4. Mozie @ BQPLR
    Jul 08, 2019 @ 14:18

    Thank you this is very useful and seems easy enough to setup.

    Reply

  5. Roman
    Jul 08, 2019 @ 18:14

    Ok, and how I must set DNS ? And how it will work with SEO principles?

    Reply

    • Csaba @ Themify
      Jul 08, 2019 @ 23:28

      Hi Roman,

      1. About how to set DNS, unfortunately we can’t help as it can be different for every Hosting Provider, please check your Hosting Provider’s Documentation on this topic.

      2. It shouldn’t affect your SEO because search engines will index it as a site.

      Reply

  6. Crystal
    Jul 14, 2019 @ 20:22

    Great suggestions. I run a few single page / landing page sites and anything to simplify this is helpful.

    Reply

  7. Rene
    Oct 08, 2019 @ 19:30

    Anybody got this working flawlessly with SSL enabled on the main site? I have the problem that when the landingpage-domains have no SSL, and the pages are being server from SSL enforced hosting, this results in security warnings…

    To enable SSL on the landing-domains, I registered them as add-on domain, and then they automatically get another source (from the physical allocated directory), so the mapping plugins mapped source won’t be reached.

    Trying this on Siteground. Anybody more success??

    Reply

    • Rene
      Oct 08, 2019 @ 22:17

      Never mind! Got it working.
      Read in the documentation that if you have to assign hosting for the domain (which I needed to to be able to install SSL), you must point the other domain to the exact same directory your WordPress installation (the one with this plugin) resides in.

      Works like a charm.

      Reply

      • Gaurab Das
        May 04, 2020 @ 18:46

        “point the other domain to the exact same directory” ….how do you do it?

        From cpanel or dns zone of the domain registrar.

        Reply

  8. Robert Mark
    Dec 29, 2019 @ 09:02

    Wow!!! Simply superb & great suggestion. Great solution dear. I’m facing such kind of problems for a long time. Great initiative indeed. Thanks a lot for all the things you have done here.

    Reply

  9. Sparky McFarland
    May 30, 2021 @ 16:34

    I’m trying to set up a marketplace in WP that will have a number of pages for an outside vendor, so there will be a landing page, but there will also be other WP pages associated with that external vendor.
    How do I make all the subsequent pages (after the redirected landing page) show the vendor’s domain?

    Reply

  10. Kyle
    Sep 11, 2021 @ 05:34

    I have the same question as Spark McFarland

    Reply

Reply