Create a subdomain

Subdomains allow you to set up easily accessible sections of your website. By establishing your company blog under blog.example.com and putting your online shop under shop.example.com, you can diversify your content and make your website easier to navigate around. Let’s see how a subdomain works and how you can create one on your ScalaHosting account.

How subdomains work

Every domain that points to your account has a document root folder. When you type your site’s domain into your browser’s address bar, the web server fetches the homepage from the document root and serves it back to you.

A subdomain works in a pretty much identical fashion. Once again, you have a document root that hosts the content you see when you navigate to the subdomain. Inside it, you can have a fresh 

WordPress installation or a messaging board where your visitors discuss topics and share opinions. The content under the subdomain exists pretty much independently from the primary site. However, the subdomain itself is not independent of the main domain.

If the main domain expires, all your subdomains become unavailable. Similarly, if you point your domain to a different account, your subdomains will stop working unless you recreate them on the new server.

Creating subdomains on your ScalaHosting account

Both cPanel and SPanel let you create as many subdomains as you want. The process is simple and takes no more than a couple of minutes. Here are the steps.

cPanel

For cPanel follow these steps :

  • Log into cPanel

cPanel’s default login URL is https://domain.com:2083, where domain.com is replaced by your actual domain name. If the domain isn’t pointing to your hosting account, you can also use the server’s IP, though you need to bear in mind that the subdomains won’t work unless you point the domain correctly.

  • Go to Subdomains

The subdomains section is accessible via a button in the Domains pane on cPanel’s homepage.

  • Pick a subdomain and specify a document root

The form that appears asks you to enter your subdomain (the part before .domain.com), pick the relevant domain from the drop-down menu, and specify a document root. By default, subdomains created with cPanel point to folders located inside the public_html directory.

  • Set up the subdomain and start using it

After you click Create, cPanel will automatically create the subdomain’s document root folder (if you haven’t picked an existing one) and will set up the subdomain for you. Creating a subdomain doesn’t modify your domain’s DNS settings, so there’s no propagation period.

SPanel

For SPanel follow these steps :

  • Log into SPanel’s User Interface

SPanel’s default login URL is https://yourdomain.com/spanel. Once again, you can use your server’s IP if your domain isn’t pointed to the correct hosting account. Be sure to use the login credentials for the relevant SPanel user account.

  • Go to Subdomains

SPanel’s tool for managing subdomains is available on the User Interface’s homepage.

  • Pick a subdomain and specify a document root folder

Just like cPanel, SPanel asks you to enter the new subdomain in the first field, choose the main domain from the drop-down menu, and specify a document root folder. Unlike cPanel, SPanel doesn’t put the subdomain’s document root inside the public_html folder.

  • Set up the new subdomain

After you click the Create Subdomain button, SPanel will set up the new document root folder (if it’s not an existing one) and will configure the new subdomain to work with it.

How To Point a Domain Name To a Web Hosting Provider

Create a subdomain, SPanel 3

Was this helpful?

What’s your goal today?

1. Find the right Managed VPS solution

If you’re looking for industry-leading speed, ease of use and reliability Try ScalaHosting with an unconditional money-back guarantee.

2. Make your website lighting fast

We guarantee to make your WordPress site load in less than 2 seconds on a managed VPS with ScalaHosting or give your money back. Fill out the form, and we’ll be in touch.

Please enter a valid name
Please enter a valid website
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

3. Streamline your clients’ hosting experience

If you’re a web studio or development agency hosting more than 30 websites, schedule a call with Vlad, our co-founder and CTO, and see how we can deliver unmatched value to both your business and your clients.

Photo

Need a custom cluster or professional advice?

Book a meeting and get a free 30-minute consultation with Vlad, co-founder & CTO of Scala Hosting, who will help you select, design and build the right solution - from a single data center cluster to a multi-region & multi-datacenter high availability cluster with hundreds of servers.

Book a free consultation

4. Learn how to grow your website in 2024

An all-star team of SEO and web influencers are sharing their secret knowledge for the first time in years. Learn about the future of SEO, Web Design best practices and the secrets to getting the foundation for your website to thrive. Watch the exclusive webinar.

An Exclusive Insiders Look Behind The SEO and Web Development Curtain

Rado
Author

Working in the web hosting industry for over 13 years, Rado has inevitably got some insight into the industry. A digital marketer by education, Rado is always putting himself in the client's shoes, trying to see what's best for THEM first. A man of the fine detail, you can often find him spending 10+ minutes wondering over a missing comma or slightly skewed design.