Configure WordPress Multisite to use different domain names

May 13, 2011 by iWeb Technologies in: Web Development Articles, Web Hosting Articles

The purpose of this example is to demonstrate how to use a single installation of WordPress on a server and run multiple websites or WordPress blogs with different domain names.

What it takes :

  • WordPress updated version (February 2011 = 3.0.5)
  • PHP version 4.3 or higher
  • MySQL version 4.0 or higher
  • Apache mod_rewrite (Linux Hosting recommended)
  • Wildcard CNAME record for subdomains
  • Activation Procedures for Multisite with sub-domain option
  • Plugin : WordPress MU Domain Mapping
  • Access to DNS management interface

Step 1 : Enable Multisite function with sub-domain

You can use this procedure to activate the Multisite function under WordPress 3.0.5 (with sub-domain option).

Step 2 : Create site and choose domain names

In my example, the main blog will be www.babillard-scolaire.org and I have already created a second site which is testmapping.

  • my first site (which will be managed under the same WordPress babillard-scolaire.org will be :
    testmapping.babillard-scolaire.org and the domain name that I will “map” will be www.babillardscolaire.com

WordPress Multisite mapping

Step 3 : Install the WordPress MU Domain mapping plugin

You may download the plugin on the WordPress.org site

  1. Create the mu-plugins directory under the wp-content directory
  2. Copy the sunrise.php file (from the WordPress Mu Domain mapping plugin) in the wp-content wp-content directory
  3. Copy the domain_mapping.php file (from the WordPress Mu Domain mapping plugin) in the mu-plugins directory
  4. Edit the wp-config.php file (I suggest to use NotePad++) and add the following line:define( ‘SUNRISE’,’on’);
    just above the “/* line. That’s all, do not touch the following! Good blogging! */”

WordPress Multisites création du répertoire mu-pluginsWordPress Multisites configuration wp-config sunrise

Step 4 : Mapping configuration in Super Admin (through the instrument panel)

Note : you must know the IP address of your website (mine in this example is 174.122.132.8). You can also use a CNAME according to the plugin information.

Click on Domain mapping under Super Admin and enter the IP address in the Server IP Address field and check :

  • User domain mapping page
  • Redirect administration pages to site’s original domain (remote login disabled if this redirect is disabled)

WordPress Multisites domain mapping configuration sous Super Admin

Step 5 : Map the domain name on the site

So I want to map the www.babillardscolaire.com domain on the website I have created testmapping.babillard-scolaire.org.

Go to the testmapping.babillard-scolaire.org site administration by clicking Super Admin and the Administration link which is under testmapping Super Adminan the Administration link which is under testmapping.

Wordpress Multisite administration du site


This opens the instrument panel to manage the testmapping site.

On the panel, click Domain Mapping under Tools

WordPress Multisite Domaine mapping du site


and add the domain you wish to map.

In my example, I want to map the www.babillardscolaire.com domain. So this is the information I have entered in the http:// field; then you check Primary domain for this blog and you click the Add button.

WordPress Multisites ajout du domaine pour mapping

WordPress Multisites Adminsitration domain mapping

Step 6 : Configure the domain on CPanel

To make the www.babillardscolaire.com domain work, I also have to configure it through CPanel, by using Parked Domains in the Domains section.

WordPress Multisites parked domain dans Cpanel


Enter the domain name (here www.babillardscolaire.com) and click the Add Domain button. Wordpress Multisites parked domain Cpanel add


Note : First, we need the DNS zone of your domain (my example: www.babillardscolaire.com) points to the IP address where your website is hosted.

I can now manage the www.babillard-scolaire.org and www.babillardscolaire.com (testmapping.babillard-scolaire.org) sites in the same instrument panel. You can add as many sites as you want.

WordPress Multisites mapping domain gestion

Our invited blogger, Annie Bergeron, is on the net since 1995 and has been working in telecommunications for 10 years. Driven by web, technologies and social media, she manages web sites using Wordpress. This article is republished on this pagewith her kin permission and has already been published on this page: http://www.esiteweb.net/configurer-wordpress-mu-domain-mapping/

Please send us your articles on Web Design, Web Hosting or Web Marketing to community@iweb.com.

Comments Off  | 

Comments

No comments yet.