Create a Subdomain
So now we’re going to go to Domain Manager and what you’re going to do is select whatever domain you want to use to create a subdomain. I’m going to use crashcourse here and now that I’ve selected that I can scroll down here to Hosting Account. And under that there is a Manage subdomains.
This is really where you create a subdomain and let’s just say lesson1 genesiscrashcourse.com. Note that when I did this it says the home folder, the document root, that’s a sort of mumbo jumbo but for your subdomain is in public_html/lesson1. It was created.
Review the File Structure
Let’s return to our subdomains. You can see there is this genesiscrashcourse subdomain that was automatically created when we added this in but there is also the lesson1.genesiscrashcourse which is our other one. Let’s go back over to Home again and scroll down to File Manager. You can see that the same thing happened with genesiscrashcourse.
Now we have a lesson1 folder and the lesson1 folder has all the stuff you would expect to see and if we come over here to www.lesson1.genesiscrashcourse.com. There are those files. So that’s how you get at your subdomain.
Now we’re going to install WordPress 3.9 for the last time here. We’ll come back over to the control panel, come down to install WordPress. Again, select install, pick your domain and now we have our domains, domains without and other domains. In this case, we’re looking for other domains and we’re looking for the lesson1.genesiscrashcourse.com.
We’ll pick that and we’re going to check the domain. We’ll get the same warning as before and we’ll just continue. We’re going to show advanced options. We’re not going to bother with site title anymore since we know it’s not working correctly but now I’m going to put a dollar sign in there. We’ll copy that. I’ve read the instructions and I’m going to install now.
Is a Subdomain a Must for Every Website?
Justin asks, “Is a subdomain a must for every website?” No, it isn’t a must for every website. People use subdomains for lots of different reasons. I use subdomains to teach lessons so I may have lesson 1 of bootcamp, lesson 2 of bootcamp, lesson 3 of bootcamp. Lesson1 is a subdomain, lesson2 is a subdomain and lesson3 is a subdomain. But no, it’s not necessary. Most people probably don’t use subdomains unless they’re using them as sort of a sandbox site where they can test out things.
Location of Subdomains
Nicole asks, “What if I want lesson1 subdomain in a different location such as inside genesiscrashcourse?”. Well, it’s probably not a good idea to do that but if you wanted the lesson1 folder inside of the genesiscrashcourse folder you would’ve done that when you created the subdomain. You would have told it where you wanted it to go.
I think that from a management standpoint, it’s best and easiest for you if you keep all of your subdomains and all of your addon domains inside of your main web server root. We’re going to talk about that in a minute but I think that’s probably the best.
It’s not a good idea to do it the way you asked about primarily because of plugins. Plugins expect to find all of the folders associated with their account inside of a separate folder. So if you have one WordPress website embedded inside of another WordPress file structure, it becomes very difficult for you and for plugins on your website to tell the difference. That’s the main reason why it’s not a good idea.
It will work and if you’ve already done it that way. That’s fine but I think from a file management standpoint it’s probably best if you know that your primary domain and every other subdomain and addon domain has its root folder inside your web server root.
Yes, Nicole every subdomain that you install WordPress on has its own WordPress install which is what we’ve been doing here. We’ve been installing WordPress on all three of these applications. So we’ve got WordPress installed on lesson1.genesiscrashcourse.com, we have it installed on genesiscrashcourse.com and we have it installed on byobbootcamp.com. These are 3 entirely separate installations.