Please read before creating a subdomain.

When you create a subdomain in cPanel, you will be asked 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.

Note: Some subdomain names are reserved: mail, www, ftp, cpanel, whm, webmail, webdisk. You can use any name except these.

How do I create a subdomain?

  1. Log into cPanel and click on the "Subdomains" icon.
  2. In the "Subdomain" field, please select the name of the subdomain which you wish to use, for example, you might choose "blog". If you choose blog, then your subdomain will look like "blog.example.com".
  3. 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.
  4. 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.
  5. Once all three fields are set the way you prefer, simply click on the "Create" button to complete the creation of your new subdomain.

Note: The temporary URL for an addon or subdomain is
http://ipaddress/~username/subfolder/ or http://servername/~username/subfolder/
where the username is your cPanel user name for your primary domain.

Examples

http://mop100.hostmop.com/~username/addon.com/
http://mop100.hostmop.com/~username/subdomain/

If you have 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 change the "Document Root" of each domain that you set up.

To avoid experiencing this issue, when you create your new subdomain, make sure you set the "Document Root" to something other than "/public_html/blog", instead, set it to something like "/public_html/blog1". If you have done this correctly, then you will have more than one domain using "blog" as a subdomain, but both subdomains will be loading separate content.

  • 8 Los Usuarios han Encontrado Esto Útil
¿Fue útil la respuesta?

Artículos Relacionados

Do HostMop Use cPanel And Have The Manual Documentation?

Yes, HostMop do use cPanel especially for our shared hosting customer. For the cPanel...

I Can't Access My Control Panel Due Too Many Login Attempts. What Should I Do?

After numerous attempts, our system will automatically block access to your username. This is...

Can I host unlimited domain names / web sites?

Yes, our reseller packages allow you to host an unlimited number of web sites. You simply...

Do You Give Us WHM For Reseller Account?

Yes, we do use WHM for our reseller account.

Do you have manual for WHM?

For the latest manual of WHM, please visit http://www.cpanel.net/docs/whm/