What are subdomains and how can I set them up?

Sub domains (or subdomains) allow you to have a new web address for separate areas of your website. Setting up a subdomain with your account is easy with the hosting control panel. Simply log in and select “Sub Domains” under the “Web Tools” section.

web tools section in control panel
Figure 1: Web tools on hosting control panel.

To add a sub domain you need to enter what you want the sub domain to be called and which directory it will point to.

edit subdomains page
Figure 2: Each subdomain is mapped to specific directories inside public_html.

For example you might want the subdomain:

support.yourdomain.com

Where the files for the sub domain are held in (you would only input the last item in the path):

/home/sites/yourdomain.com/public_html/support

Note that this directory would also show when browsing http://yourdomain.com/support and http://www.yourdomain.com/support so we would recommend to add 301 redirects in your .htaccess to make sure traffic gets to where you want it to go.

To delete a sub domain or change the directory that it points to you simply need to edit the details listed in the “Edit Sub Domains” section.

You can also set up subdomains as A-records in the DNS Management section. Using this your subdomain can point to a specific IP address.

This can be done via the domain manager.

Please note, it will take anywhere from 30 minutes to a few hours for a sub-domain to begin working as expected, whilst the update to your sites settings is processed.