This article describes how to add, redirect, and delete subdomains using cPanel.
A subdomain is a domain that is part of a larger domain, based upon a prefix name that you choose. For example, the example.com domain might have a subdomain for the support department that directs visitors to a separate area of the web site. If the subdomain prefix is support, then the fully qualified domain name (FQDN) is support.example.com.
You can use subdomains whenever you want to create separate areas on your web site that are accessible using different FQDNs.
To add a subdomain, follow these steps:
If you are using the Paper Lantern theme, in the DOMAINS section of the cPanel home page, click Subdomains:
Under Create a Subdomain, type the name of the subdomain that you want to add in the Subdomain text box.
cPanel automatically fills in the document root path by using the subdomain name that you provide. This path is where the subdomain's files are stored. If you want to store the subdomain's files in another directory, type the full path in the Document Root text box.
Please be aware that there are potential risks to placing website directories in subdirectories beneath an existing website. (For example, by hosting a site in the public_html directory, and a site in a subdirectory beneath the public_html directory.) Some of these risks are:
For these reasons, we recommend placing the document root for a subdomain in a dedicated directory outside of the public_html directory.
The following names are reserved on managed accounts, so you should not use them for new subdomains:
Click
You can redirect web site visitors from a particular subdomain to another location. This feature is often used when the subdomain's web pages have moved to a new location. For example, you might redirect the sales.example.com subdomain to the salesnew.example.com subdomain.
To enable subdomain redirection, follow these steps:
If you are using the Paper Lantern theme, in the DOMAINS section of the cPanel home page, click Subdomains:
On the Redirection page, type the redirection destination address in the redirects to: text box.
When you no longer want to redirect visitors from a subdomain to another location, disable redirection.
To disable subdomain redirection, follow these steps:
If you are using the Paper Lantern theme, in the DOMAINS section of the cPanel home page, click Subdomains:
When you no longer need a subdomain, you can delete it.
To delete a subdomain, follow these steps:
If you are using the Paper Lantern theme, in the DOMAINS section of the cPanel home page, click Subdomains:
Click
For more information about subdomains, please visit http://en.wikipedia.org/wiki/Subdomain.
Subscribe to receive weekly cutting edge tips, strategies, and news you need to grow your web business.
No charge. Unsubscribe anytime.
Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.
We use cookies to personalize the website for you and to analyze the use of our website. You consent to this by clicking on "I consent" or by continuing your use of this website. Further information about cookies can be found in our Privacy Policy.