Create a subdomain

There are many reasons why you want to create a subdomain, you can e.g. create a subdomain to use it as a staging environment, develop a new website or connect it to an existing system. In this guide, we go through how to create a subdomain and what are the different ways to do it.

You can either create a subdomain with its own public_html directory or as a sub-directory to the domain.
This is how the paths look depending on how the subdomain is created:

  • Own public_html directory: home/användarnamn/domains/ subdomän.exempel.se /public_html/
  • Sub-directory: home/användarnamn/domains/exempel.se/public_html/ subdomän /

Subdomain with its own public_html directory

This option is the one we recommend in most cases. This is especially good if you are going to clone or create a staging environment for a Wordpress site or other CMS system.

BStart by going to Account Manager -> Domain Setup, as shown in the picture below. ![bfd2c7e3ac57e5981161fc0c87e66ce9.png] (/storage/images/january2022/bfd2c7e3ac57e5981161fc0c87e66ce9.png)

För att skapa en ny subdomän så klickar du på Add New enligt bilden nedan. 7613844723035342b7f51d3c511d741e.png

Här you now write what the subdomain should be called and specify any restrictions.

730b2c6ba9e5a99781d10e5708cea2cf.png

  • Domain: Here you specify what the entire subdomain should be called, e.g. ex: subdomain.example.see
  • Bandwidth & Disk Space: Here you can set a limit on how much bandwidth/disk space the subdomain may use. Same as Main Account is recommended and can then use the total bandwidth/disk space of the web host.
  • Options: Here it is recommended that Secure SSL and PHP Access are ticked. Check CGI Access if you intend to build an application in Python or NodeJS.

Then click on the Create button and the subdomain will be created.

Subdomain as a Sub-directory

This option can be beneficial if you are building a Multisite Network in WordPress.

BStart by going to Account Manager -> Subdomain Management, as shown in the image below. 9f574a64deb8c6b82fbe6f572775b2f2.png

To create a new subdomain, click Add Subdomain according to the image below. 02a7d66fd958ccea8f2720983812366a.png

Here you now write what the subdomain should be called. You don`t need to enter the domain name at the end, because it is already on the right side of the field. fc944e479a119dcbb6776057f88174ec.png

Then click the ADD SUBDOMAIN button and the subdomain will be created.