BuycPanel Blog

BuycPanel Blog

Latest news and updates

1/13/2015 – Subdomains and your cPanel

Posted by Jamison on 13 01 2015.

A subdomain is second website that has the same domain name, although it as different content and also a different www address. Let’s say for example that the original site is www.qwerty.com. The subdomain can be forums.qwerty.com, help.qwerty.com or even contactus.qwerty.com

 

How is it different from an add-on domain and a parked domain?

 

An add-on domain is also second website and also has its own unique content. However, this type of domain requires you to register it under a new domain name before you can start hosting it.

 

A parked domain is not a unique website, rather it is like an alias to the primary domain name of your first website. Using our example above www.whatisqwerty.com and www.iwantqwerty.com can both be parked domains for www.qwerty.com

 

Parked domains are commonly used when:

 

  • You need a place to park a domain for which you do not have a website.
  • You want more than one domain to lead to your primary domain.
  • There are common misspellings of the domain name that you have registered.
  • You want many people who don’t know about your main website to be able to visit.

 

How to create a subdomain

 

  1. Log into cPanel.
  2. Go to the Domains section and click on the Subdomains icon.
  3. In the Subdomain field, select the name of the subdomain you wish to use.
  4. In the adjacent drop menu, select the domain for which you want to create this subdomain, you can create a subdomain for any add-on domain or parked domain you already have in your cPanel.

 

Remember that add-on domains automatically create a corresponding subdomain that reflects the add-on domain and primary domain.

 

5. Click on the Document Root field, this should automatically populate with a suggested location from where the subdomain will load its content

6. Click Create to complete the creation of your new subdomain

 

The temporary URL for an add-on or subdomain should look like the line below, just be sure to put your actual IP address, server name, username and subfolder.

 

http://(ip address)/~(username)/(subfolder)/

 

or

 

http://(server name)/~(username)/(subfolder)/

 

How to upload files to an add-on or subdomain

 

There are two ways you can do this via File Transfer Protocol

 

Enter the following information in a FTP client:

 

Host = add on domain name

User = addondomain@primarydomain.com

Password = (your password)

Port = 21

 

After you have successfully connected to your ftp client, you should see a folder called cgi-bin that contains your files.

 

You can also use your cPanel data to transfer files.

 

Host = primary domain name

User = cPanel username

Password = cPanel password

Port = 21

 

After you do this it should show up in your home directory. Just double click the public_html folder and the add-on domain folder.

 

How to redirect a subdomain to another page

 

  1. Log into cPanel.
  2. Go to the Domains section and click the Subdomains icon.
  3. Under Modify a Subdomain, click the Manage Redirection link to the right of the subdomain you want to redirect.
  4. In the text box, type the URL to where you want visitors to be redirected if they go to the subdomain.
  5. Click Save.

 

If visitors go to the subdomain, they should now be redirected to the page you specified.