WpCode.net

Daily Wordpress Code Snippet

How to install WordPress As Network Using Subdomain

| 0 comments

Pin It

In this tutorial i’ll show you how to create a network using WordPress and Subdomain. I assume you use cpanel, so we can obtain what we want in 3 steps.

In the first, we will set Cpanel to host the subdomain created on-fly; in the seconds we will setup wordpress to host a network and create new blog on subdomains, in the third we will setup the .htaccess file to setup the Apache Mod Rewrite.

You can use subdomain also on your shared hosting, you don’t need a VPS or Dedicated, i use wordpress as network on subdomain, with my Hostgator account.

Please, if you are beginner before start do a complete backup of wordpress and of database.

1. Setup Cpanel:

  • Connect on your Cpanel
  • Click on the “Subdomains” link.
  • You need to create a new subdomain with the wildcats (*) that point on the wp-config.php location.
  • Then click on “Create”

2. WordPress Configuration:

    • Open your main wp-config.php file
    • Above the “/* That’s all, stop editing! Happy blogging. */” add:
define('WP_ALLOW_MULTISITE', true);
  • Save and Upload on your Server

At this point you need to login on your Dashboard,

  • Disable All Active Plugins,
  • Under Tools in your dashboard you will find new menu called “Network setup, click on it,
  • In the first screen wordpress will ask you some details about your new network installation, when ready click on “Install
  • By default, if your wordpress is not new, wordpress will install the network on subdomain.
  • On the screen you can see two code-area, you need to copy the first on the wp-config.php file

  • Save and upload on server

3 .Htaccess configuration:

  • Copy the second code-area
  • Open Your .htaccess file
  • Select all and delete all,
  • Past the new code copied
  • Save and Upload

Conclusion:

You have now your new wordpress network installed as subdomain, you just need to enable the new registration and tell people to open their new blog. In next article i’ll try to show you how to install a wordpress network on subdirectory.

Last thing to do is login again on your dashboard. You Now you have two Dashboard:

  • yourblog.com/wp-admin —> is the dashboard of your main blog
  • yourblog.com/wp-admin/network —> the dashboard of the network.

Each new blog will have each own dashboard, just connect on blogname.yourblog.com/wp-admin.

Leave a Reply

Required fields are marked *.

*