WordPress Multisite: Subdomains or Subdirectories?

WordPress Subdomains and Subdirectories relate to the structure of the URLs used for each of the sites in your Multisite network. They don’t correspond to where your server stores the sites, but to the way, WordPress creates URLs for them.

Let’s say you’ve got a network called bestknownhost.com. If you set it up to run on subdomains, a site called blog will have an address of blog.bestknownhost.com. But if you set it up to run on subdirectories, then that blog’s URL will be bestknownhost.com/blog so,

Subdomain: site1.exampledomain.com, site2.exampledomain.com, site3.exampledomain.com, etc.

Or like this:

Subdirectory: exampledomain.com/site1, exampledomain.com/site2, exampledomain.com/site3, etc.

Which you choose will depend on a few things: 
  • Whether your network is on a new WordPress installation or an established one. 
  • Whether your network is for your personal sites, or sites you will let other people set up or buy. 
  • Whether you’re using domain redirection. 
  • Your hosting – can you set up subdomains? 
  • Your site’s location – on a local or remote server, or in a subdirectory. 
  • And finally, it will depend in part on your preference.
Choosing Between Subdomains and Subdirectories Needn’t Be Difficult 
When you’re activating Multisite to create your first network and you come across the option for subdomains or subdirectories, it can feel daunting. There are a few criteria you must weigh up, but if you take the time to identify which option is best for your network, then it’ll save you the lengthy process of switching at a later date.

Feedback and Knowledge Base