Home |   Community News |   Submit WP Powered Site |   WP Powered Sites Gallery
 
 
 
 

How to do Domain Mapping in WordPress Multiste Network

On  WordPress multisite, you can use a custom domain for your blog, such as wparena.com, instead of the default address you get when you sign up, like example.wparena.com. This is called Domain Mapping, it is it’s a paid service wordpress.com, If you are hosting your own site and using WordPress than all you have to unable your wordpress site into multisite and need feww plugins to manage your network sites.

Running multiple sites within WordPress, First of all you have to enable Multi Site feature in WordPress 3.0. There are two plugins (Professional Domain Mapping and WordPress MU Domain Mapping ) which will help you to do that. Professional Domain Mapping includeda sixteen page ebook with full documentation and screenshots to help you set up whatever kind of server you have.

WordPress MU Domain Mapping Plugin

This plugin allows users of a WordPress MU site or WordPress 3.0 network to map their blog/site to another domain.

  1. Install the plugin in the usual way into the regular WordPress plugins folder. Network activate the plugin.
  2. Move sunrise.php into wp-content/. If there is a sunrise.php there already, you’ll just have to merge them as best you can.
  3. Edit wp-config.php and uncomment or add the SUNRISE definition line. If it does not exist please ensure it’s on the line above the last “require_once” command. define( 'SUNRISE', 'on' );
  4. As a “super admin”, visit Super Admin->Domain Mapping to create the domain mapping database table and set the server IP address or a domain to point CNAME records at.
  5. Make sure the default Apache virtual host points at your WordPress MU site or WordPress 3.0 network so it will handle unknown domains correctly. On some hosts you may be required to get a dedicated IP address. A quick check: in a web broswer, type in the IP address of your install. If you are using CPanel, use the Park a Domain menu to set the mapped domain to your main installtion.
  6. Do not define COOKIE_DOMAIN in your wp-config.php as it conflicts with logins on your mapped domains.

Illustrated installation instructions can be found here but you can ignore the instructions to place domain_mapping.php in mu-plugins. Thanks Otto.

Configuration

On Super Admin->Domain Mapping you can configure the following settings:

  1. “Remote Login” can be disabled. Useful if you’re hosting totally separate websites.
  2. “Permanent redirect” uses a 301 redirect rather than 302 to send visitors to your domain mapped site.
  3. “User domain mapping page” allows you to disable Settings->Domain Mapping that the user uses.
  4. “Redirect administration pages to network’s original domain (remote login disabled if this redirect is disabled)” – with this checked, if a user visits their dashboard on a mapped domain it will redirect to the dashboard on the non mapped domain. If you don’t want this, remote login will be disabled for security reasons.
  5. “Disable primary domain check. Sites will not redirect to one domain name. May cause duplicate content issues.” – ignore the primary domain setting on your sites. The same content will be available on multiple domains and may cause problems with Google because of duplicate content issues.

Super Admin->Domains allows you to edit the domains mapped to any sites on your network.

For Cpanel users

If your domain uses the nameservers on your hosting account you should follow these instructions. If the nameservers are elsewhere change the A record or CNAME as documented above. Add a wildcard subdomain/virtual host record to your site’s DNS record in Web Host Manager (WHM). If you do not have access to WHM, you must email your web host and ask them to make this one change for you. Should be no problem:

  • Go to “Edit DNS Zone” and select the domain of your WPMU installation and click “Edit”.
  • Below “Add New Entries Below This Line”, enter in the first box (Domain) an asterisk: “*”.
  • The second box, TTL, should be “14400″.
  • The third box should be “IN”.
  • Select A Record Type from the drop down “A”.
  • And in the last box, paste in the IP address of your website/network.

From Cpanel, click on the “Parked Domains” under the “Domains” section:

  • Under “Create a New Parked Domain” enter the domain name you want to add to your network.
  • Click the “Add Domain” button.
  • It should add the domain to the list of parked domains and under “Redirect to” it will say “not redirected”. That is OKAY.

Now you’re ready to do your domain mapping.

Download WordPress Domain Mapping

Professional Domain Mapping Plugin

Professional Domain Mapping is the ideal plugin to use if you wish to hide the originating domain of the network, and where you wish for the Super Admin to be the only one with access to the menu. You can also add additional aliases.

  • Less menu option, less confusion over settings.
  • Hides original subdomain
  • Specific instructions and screenshots for common hosts.
  • We’ll also support the free domain mapping plugin!

$29.95 includes the plugin, the 16 page ebook and support! Now updated for 3.1 and includes specific instructions for hosts like WPWebHost , Hostgator, BlueHost, Hostmonster and more .

Purchase Professional Domain Mapping

Note: If you require separate domains in your installation with the ability to have member sites associated with those domains (child blogs), then we suggest the Networks Plus plugin instead.

Useful Resources:

WordPress Premium Content

User Locations
Question & Answers – Green Automatic
What is domain mapping?
WordPress 3.0: Multisite Domain Mapping Tutorial
Best BuddyPress Themes for Social Networking
How to manage plugins in WordPress MultiSite Network
How to enable Multi Site feature in WordPress 3.0?

Like this post? Share it!

  • Tweet
  • Facebook
  • Diggit
  • Delicious
  • Reddit
  • StumbleUpon

Related Posts

Rss Feeds   Twitter Followers Email Updates



Community News

Submit More

Popular Posts