You can easily divide your web address into several areas by creating a WordPress subdomain. In this article, you will find out the ad­vant­ages and dis­ad­vant­ages of doing this as well as how to install WordPress on a subdomain you have created.

Cheap domain names – buy yours now
  • Free website pro­tec­tion with SSL Wildcard included
  • Free private re­gis­tra­tion for greater privacy
  • Free Domain Connect for easy DNS setup

What are the pros and cons of a subdomain?

A subdomain is a component of a domain that is sub­or­din­ate to the domain name, it is also called a second-level domain. Con­sequently, a subdomain can also be referred to as a third-level domain. It precedes the domain name and is separated by a period. The following graphic shows the subdomain’s placement in the example.org URL.

Using a subdomain has several ad­vant­ages. Firstly, you can create as many new sub­do­mains as you want without incurring any extra cost or paying for a new web address. You can also market several products or offers on the same root domain, strength­en­ing your brand.

It is worth noting that every subdomain is marked as its own website in the Google Search Console. It usually also requires much more effort when it comes to link­build­ing. Sub­do­mains also generally don’t offer any advantage over a standard domain when it comes to Search Engine Op­tim­isa­tion.

Note

Relying on WordPress on sub­do­mains, along with sub­dir­ect­or­ies, is one of the URL struc­tures you can choose when setting up WordPress multisite.

How to create a subdomain

The exact procedure for creating and in­stalling a subdomain on WordPress and others depends on which provider you host your project with. Many providers allow such con­fig­ur­a­tions via the web-based tool cPanel. IONOS customers can create any sub­do­mains as follows:

  1. Log into the cloud panel via the Login page.
  2. Click on the 'Domains & SSL' heading.
  3. Choose the domain you want to create a subdomain for.
  4. Open the 'Sub­do­main­s' tab.
  5. Press the 'Create Sub­do­main' button.
  6. Choose the desired name for the subdomain and click 'Save'.
Tip

Still don’t have the right domain for your WordPress subdomain-in­stall­a­tion ready? Register the perfect domain name with IONOS and get an SSL/TLS cer­ti­fic­ate as well as a mailbox with 2 GB storage space for free!

How to install WordPress on a subdomain, step by step

In­stalling WordPress on a subdomain is basically the same process as creating a new WordPress site. 1-click in­stall­a­tion allows you to save a huge amount of time and effort. You can also choose a manual in­stall­a­tion option if you want.

In the following steps, we outline each step with examples of both vari­ations for IONOS customers.

Manually in­stalling WordPress on a subdomain

Manually in­stalling WordPress on a subdomain gives you control over which version you have on your online storage. It’s generally advised that you choose the most up-to-date version, but you can also opt for an older version this way.

Step 1: Download WordPress

Firstly, you download your chosen version of WordPress. Go to the official WordPress download page and click on the 'Download WordPress x.x.x' button to get the latest version. You will find older versions under the 'Re­leases' page.

Extract the down­loaded ZIP file and save it to your local drive. In later steps, you will then need to transfer these program files into the WordPress subdomain online storage.

Tip

Are you still searching for a suitable hosting solution for your WordPress subdomain in­stall­a­tion? Choose Hosting for WordPress from IONOS and profit from benefits such as maximum speed, maximum control and the best pro­tec­tion!

Step 2: Create a subdomain and add a DNS entry

If you have not already done so, create the desired subdomain as described above. However, once you have created a sub­ad­dress, you still need to create a new DNS entry for it. You can do this in the IONOS Cloud Panel using the following steps:

  1. Log in using the IONOS Login page.
  2. Click on the 'Domains & SSL' button.
  3. Choose the domain for which you have created a subdomain on WordPress.
  4. Click on the 'DNS' tab.
  5. Click on 'Add a DNS record' and choose type 'A'.
  6. Add the relevant in­form­a­tion. Type in the address of your new subdomain under 'Host Name'.
  7. Then save your work.
Tip

Should your subdomain contain an alias? Simply create the ap­pro­pri­ate CNAME record directly in the panel.

Step 3: Create a database

You need a new database to install WordPress on a subdomain. IONOS users can also easily create these in the Cloud Panel. After logging into the customer area, take the following steps:

  1. Switch to the 'WP Business' section.
  2. Click the 'Manage' button in the 'Databases' entry.
  3. Click on 'Create database'.
  4. Choose your desired database type (Standard: MySQL).
  5. Insert a de­scrip­tion and password.
  6. Click 'Save'.
Note

Please note down the following data: database name, hostname, username and password. They will be required to include the created database into the WordPress in­stall­a­tion on the subdomain.

Step 4: Upload WordPress files onto online storage

The next step is to install your chosen FTP client and connect it to the online storage your subdomain is being hosted on.

Tipp

You can read how to download the popular FileZilla FTP client and how to connect it to your chosen online storage in the FileZilla tutorial.

Look for the ./public.html/subdomain directory and upload the unzipped WordPress program files to this folder.

If you can’t find the directory, it is possible that the subdomain isn’t connected to the online storage. If so, take the following steps on IONOS Cloud Panel:

  1. Go to the 'Domains & SSL' section.
  2. Choose the domain your subdomain runs under.
  3. Click the 'Sub­do­main­s' tab and then click on the 'use domain' button.
  4. Choose the 'Connect to webspace' option and confirm this change by clicking 'Save'.

Step 5: Edit wp-config.php

You will find a file named wp-config-sample.php in your uploaded files. Rename the file wp-config.php and open it in any text editor. Finally, add the data from the third step into the cor­res­pond­ing spots:

  • DB_NAME: Database name
  • DB_USER: Username
  • DB_PASSWORD: Password
  • DB_HOST: Hostname

Step 6: Install WordPress on a subdomain

Once you have added the database in­form­a­tion to the con­fig­ur­a­tion files and saved them, you can finally begin to install WordPress on the subdomain. Paste the following URL into your browser:

subdomain.domain.tld/wp-admin/install.php

Replace the preex­ist­ing subdomain.domain.tld with the address of your subdomain. As soon as you load the URL, the WordPress in­stall­a­tion wizard will auto­mat­ic­ally start.

How to install WordPress on a subdomain with 1 click

Many providers enable you to install WordPress on a subdomain with the help of 1-click in­stall­a­tion. This way you save a lot of time and effort as well as cutting out the most common error sources during setup. This variant is highly re­com­men­ded for beginners.

Tipp

Want to install WordPress with ease, without the effort of manual setup? Choose a suitable plan with IONOS and enjoy quick and easy WordPress in­stall­a­tion.

IONOS enables you to install WordPress on your subdomain with 1 click using the following steps:

  1. Log into cloud panel through the login page.
  2. Go to the 'Domains & SSL' section and choose the domain your subdomain runs under.
  3. Click the 'sub­do­main­s' tab and then click on the 'use domain' button.
  4. Choose the 'create website' option
  5. Click on 'flexible & complete' and choose WordPress.
  6. Give the in­stall­a­tion a title and click on 'Create website'.
  7. Create a user and then choose 'Continue with Word­Press'.
  8. In the last step, assign the subdomain once again and WordPress will be installed and set up auto­mat­ic­ally.
Tip

In­ter­ested in more in­form­a­tion about WordPress? The following articles contain in­ter­est­ing topics about the popular Content Man­age­ment System:

Summary

Install WordPress on a subdomain to save costs and strengthen your brand. As soon as you have created a suitable subdomain, you will usually have the option to choose between a manual or 1-click in­stall­a­tion. The former requires you to copy all program files into the online storage, the latter uses a ready-to-use app from the provider.

Go to Main Menu