clients.example.com/are subdomains of
Note: Some subdomain names are reserved: mail, www, ftp, cpanel, whm, webmail and webdisk. You can use any name except these names.
When you create a subdomain in cPanel, the first thing you will have to do is to choose the name of the subdomain, the domain the subdomain is for and the location from which the new subdomain will load it's content.
How to Create a Sub-Domain
Next, select the desired domain you wish to create this subdomain for from the drop down menu to the right of the "Subdomain" field. You may create a subdomain for any addon, parked or subdomain that already exists in your cPanel.
When you click on the "Document Root" field, it should automatically populate with a cPanel suggested location from which the subdomain will load it's content. For instance, if you chose "blog" as your new subdomain, then the "Document Root" field will populate with "/public_html/blog". This means that the new subdomain will load it's content from the folder named "blog" from within the "public_html" directory.
Once all three fields are set the way you prefer, simply click on the "Create" button to complete the creation of your new subdomain.
You will also want to read:
How to Create a MySQL Database, a User and Delete Database in Cpanel
How to Backup My Website in cPanel
How to Create a Website/Domain Redirect in cPanel
How to force your website url with www or non-www using htaccess
How to optimize your website to use less server resources
Note: The temporary URL for a subdomain is
where the username is your cPanel user name for your primary domain.
If you have an addon or parked domains that you wish to have the same subdomain name for, but wish for those subdomains to load different content, then you must pay close attention to the "Document Root" field. For example, if you own several domains and wish to have a different blog set up for each domain that loads from the subdomain name blog, then you will have to change the "Document Root" of each domain that you set up. This is very important because if you create blog.todhost.com and blog.seohosting.com on the same cPanel, but leave the "Document Root" as the cPanel suggested location, then both of your blog subdomains will load from the same directory of "/public_html/blog" and you will not have separate content for each subdomain.
How to Reset or Change to a New CPanel Password
How to Set Up and Delete a Cron Job
How to Setup Google Apps MX, CNAME and SPF records
How to upload files to a website
Overview of Quickinstall
When to Use a Subdomain
Subdomains enable you to set up multiple websites using a single domain. However, you can actually use subdirectories to achieve the same end, for example by setting up a todhost.com/blog subdirectory. But there are reasons and times we recommend a subdomain instead of a sub-directory.
- Search engines recognize subdomains as individual websites. That means you get more chances to increase your traffic.
- They enable you to set up backlinks to your primary domain, which can increase its authority.
- When you are running an e-commerce store to complement your primary website.
- When you are setting up a blog for an existing company or business website.
These two situations have one thing in common: they’re both running as parallel sites with specific functionality. You can achieve the exact same results using subdirectories, but the SEO benefits often make subdomains a better choice.
How to create wildcard sub-domains in cpanel
In order to create a wildcard subdomain, please, follow these steps:
n order to create a wildcard subdomain, follow the next steps:
1. Log into your cPanel. You will be able to login with the right credientials namely your username and password. If you have forgotten your password, then use the password recovery link to reset your password.
2. Navigate to the menu Subdomains under the Domains section:
3. Create a subdomain * pointing it to the necessary folder (you will need to specify the path in the field Document Root):
4. Go to the menu Advanced DNS Zone Editor :
5. Make sure that there is an A record for *.yourdomain.com created and pointed to the server IP address (it could coincide with the IP address of your main domain or ftp.yourdomain.com is pointed to):
6. Now, you will need to wait until the propagation is over For this A record; you can edit it manually and reduce the number to speed up the process), and then the wildcard subdomain will work correctly.
The URLs and the navigation structure of a website can affect a website's search engine optimization. For example, take sub domains and sub directories. These are site's structural elements that do influence how Google ranks results. While the difference between when a page is in a sub directory (also called a sub folder) vs when it's on a sub domain might not be always huge, there are cases when it really matters if you use sub domains or sub directories. In this article, we examine the difference between a sub domain and a sub directory.
PHP Configuration in cPanel
Step by Step Approach to Password Protect a Directory in cPanel
The htaccess file and its uses
How to change a subdomain's website folder
Why Change a Sub-Domain's Root Folder
In this article, we are going to show you how to change your subdomains document root. You will follow these steps to make the changes.
How to Change a Sub-Domain's Root Folder
1) Click the subdomains link found in the Domains section of the panel.
2) Click the Edit button for the domain you wish to modify.
3) Enter the new Document Root you wish to use
4) Click Change
Please note that your website files will NOT be moved when you change the website folder. You will need to use a FTP client, SSH client or the File Manager to move the files to the new location.
The Difference Between a Sub Domain and a Sub Directory
Notice the 'subdomain' part before your main domain name. This part tells Google and your visitors that the contents in the sub domain is separate from the contents of the rest of your site. A typical use for sub domains is for a business site where the blog is separate from the rest and it resides on a subdomain of its own – i.e. blog.domainname.com. Sites with forums (and other content, for instance articles) also frequently separate the forum part on a sub domain, such as forum.todhost.com.
Unlike sub domains that precede the domain name, sub directories will look like this:
Obviously, the difference is that the directory name comes after the domain name rather than preceeding it as we saw with a sub domain.
There isn't a rule when to use sub domains and when to use sub directories but basically if the content is a good candidate for a separate site, then you go with sub domains. If the content isn't that much different from the main content, you go with sub directories. For instance, if you have a blog about web design, you can have separate sub directories for tutorials, free stuff, your artwork, etc., but put the shop where you sell templates and designs on a separate domain.
How to upload to a sub-domain or addon domain.
Host = add on domain name
User = firstname.lastname@example.org
Password = what you entered during Addon domain creation
Port = 21
Once you have successfully connected to your ftp client will be in the root of the add on domain name.
If everything was successful you should see a folder called cgi-bin.
Upload your files.
Enjoy your new site.
Host = primary domain name
User = cPanel username
Password = cPanel password
Port = 21
Once you have successfully connected to your ftp client will be in the home directory.
Double click the public_html folder. Double click the addon domain folder.
Upload your files.
Enjoy your new site.
You do not need to upload or create the cgi-bin folder. The cPanel will automatically create this folder with each new Addon and Subdomain creation.