Creating a sub-domain based multisite wordpress installation

Today I was feeling a little adventurous.

I decided that I would experiment with a multisite WordPress installation.

Not only that, I also implemented a sub-domain enabled WordPress installation. My primary domain was an add-on domain.

Here’s how I did it:

  1. I added the new domain as an add-on domain in my host cpanel – took note of the directory location (A)
  2. I added a “wildcard” sub-domain in cpanel’s add sub-domain – simply use asterisk (*) as the sub-domain name, and make sure that the directory location (A) is the same as in (1) above
  3. Installed WordPress in the directory location (A), and enabled multisite installation
  4. Configure both wp-config.php and .htaccess based on the code on the network setup in WP admin of the multisite installation

That worked.