# How to install WordPress on a subdomain

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

## What are the pros and cons of a subdomain?

A [subdomain](https://www.ionos.com/digitalguide/domains/domain-administration/what-is-a-subdomain/ "What is a subdomain?") is a component of a domain that is subordinate to the domain name, it is also called a second-level domain. Consequently, 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.

[![Image: Graphic of a URL including subdomain](https://www.ionos.com/digitalguide/fileadmin/_processed_/2/5/csm_graphic-of-a-url-including-subdomain_2a8780a8f8.webp "Graphic of a URL including subdomain")](https://www.ionos.com/digitalguide/fileadmin/DigitalGuide/Screenshots_2022/graphic-of-a-url-including-subdomain.png) Graphic of a URL including subdomain       Using a subdomain has several advantages. Firstly, you can create as many new subdomains 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, strengthening your brand.

It is worth noting that every subdomain is marked as its own website in the [Google Search Console](https://www.ionos.com/digitalguide/online-marketing/search-engine-marketing/google-search-console-things-to-know-before-you-start/). It usually also requires much more effort when it comes to [linkbuilding](https://www.ionos.com/digitalguide/online-marketing/search-engine-marketing/seo-basics-link-building-tips-for-good-page-ranking/). Subdomains also generally don’t offer any advantage over a standard domain when it comes to [Search Engine Optimization](https://www.ionos.com/digitalguide/online-marketing/search-engine-marketing/the-basics-of-search-engine-optimization/).

---

### Note

Relying on WordPress on subdomains, along with subdirectories, is one of the URL structures you can choose when setting up [WordPress multisite](https://www.ionos.com/digitalguide/hosting/blogs/wordpress-multisite/).

---

## How to create a subdomain

The exact procedure for creating and installing a subdomain on WordPress and others depends on which provider you host your project with. Many providers allow such configurations via the web-based tool cPanel. IONOS customers can create any subdomains as follows:

1. Log into the cloud panel via the [Login page](https://login.ionos.com "IONOS Cloud Panel: Login").
2. Click on the “**Domains &amp; SSL**” heading.
3. Choose the domain you want to create a subdomain for.
4. Open the “**Subdomains**” tab.
5. Press the “**Create Subdomain**” button.
6. Choose the desired name for the subdomain and click “**Save**”.

[![Image: Create a subdomain in IONOS Cloud Panel](https://www.ionos.com/digitalguide/fileadmin/_processed_/5/2/csm_create-a-subdomain-in-ionos-cloud-panel_5a3856c561.webp "Create a subdomain in IONOS Cloud Panel")](https://www.ionos.com/digitalguide/fileadmin/DigitalGuide/Screenshots_2022/create-a-subdomain-in-ionos-cloud-panel.jpg) Creating a subdomain in IONOS Cloud Panel       ---

### Tip

Still don’t have the right domain for your WordPress subdomain-installation ready? [Register the perfect domain name](https://www.ionos.com/domains/domain-names "Buy and register cheap domains with IONOS") with IONOS and get an SSL/TLS certificate as well as a mailbox with 2 GB storage space for free!

---

## How to install WordPress on a subdomain, step by step

Installing WordPress on a subdomain is basically the same process as [creating a new WordPress site](https://www.ionos.com/digitalguide/hosting/blogs/creating-a-website-with-wordpress-a-beginners-guide/). **1-click installation** allows you to save a huge amount of time and effort. You can also choose a manual installation option if you want.

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

## Manually installing WordPress on a subdomain

Manually installing 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](https://wordpress.org/download/ "wordpress.org: WordPress download") and click on the “**Download WordPress x.x.x**” button to get the latest version. You will find older versions under the “Releases” page.

[![Image: Screenshot of the WordPress website “wordpress.org”](https://www.ionos.com/digitalguide/fileadmin/_processed_/f/1/csm_screenshot-of-the-wordpress-website-wordpress-org_acc86bed54.webp "Screenshot of the WordPress website “wordpress.org”")](https://www.ionos.com/digitalguide/fileadmin/DigitalGuide/Screenshots_2022/screenshot-of-the-wordpress-website-wordpress-org.jpg) Image description: Screenshot of the WordPress website “wordpress.org”, Source: https://wordpress.org/download/#download-install       Extract the downloaded 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 installation? Choose [Hosting for WordPress](https://www.ionos.com/hosting/wordpress-hosting "Hosting for WordPress from IONOS") from IONOS and profit from benefits such as maximum speed, maximum control and the best protection!

---

### 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 subaddress, 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](https://login.ionos.com "IONOS Cloud Panel: Login").
2. Click on the “**Domains &amp; 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 information. Type in the address of your **new subdomain under “Host Name”**.
7. Then save your work.

[![Image: Adding DNS record in the IONOS Cloud Panel](https://www.ionos.com/digitalguide/fileadmin/_processed_/c/c/csm_adding-dns-record-in-the-ionos-cloud-panel_297330a450.webp "Adding DNS record in the IONOS Cloud Panel")](https://www.ionos.com/digitalguide/fileadmin/DigitalGuide/Screenshots_2022/adding-dns-record-in-the-ionos-cloud-panel.jpg) Adding DNS record in the IONOS Cloud Panel       ---

### Tip

Should your subdomain contain an alias? Simply create the appropriate [CNAME record](https://www.ionos.com/digitalguide/hosting/technical-matters/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 description and password.
6. Click “**Save**”.

[![Image: Creating database in IONOS Cloud Panel](https://www.ionos.com/digitalguide/fileadmin/_processed_/3/6/csm_creating-database-in-ionos-cloud-panel_59f5bece36.webp "Creating database in IONOS Cloud Panel")](https://www.ionos.com/digitalguide/fileadmin/DigitalGuide/Screenshots_2022/creating-database-in-ionos-cloud-panel.jpg) Creating database in IONOS Cloud Panel       ---

### 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 installation 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](https://www.ionos.com/digitalguide/server/configuration/filezilla-tutorial-for-the-ftp-client-program/).

---

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 &amp; SSL**” section.
2. Choose the domain your subdomain runs under.
3. Click the “**Subdomains**” tab and then click on the “**use domain**” button.
4. Choose the “**Connect to webspace**” option and confirm this change by clicking “**Save**”.

[![Image: Connect the subdomain with online storage in the IONOS Cloud Panel](https://www.ionos.com/digitalguide/fileadmin/_processed_/6/c/csm_connect-the-subdomain-with-online-storage-in-the-ionos-cloud-panel_75849f15a9.webp "Connect the subdomain with online storage in the IONOS Cloud Panel")](https://www.ionos.com/digitalguide/fileadmin/DigitalGuide/Screenshots_2022/connect-the-subdomain-with-online-storage-in-the-ionos-cloud-panel.jpg) Connect the subdomain with online storage in the IONOS Cloud Panel       ###  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 corresponding spots:

- **DB\_NAME**: Database name
- **DB\_USER**: Username
- **DB\_PASSWORD**: Password
- **DB\_HOST**: Hostname

[![Image: Database configuration in wp-config.php](https://www.ionos.com/digitalguide/fileadmin/_processed_/8/8/csm_database-configuration-in-wp-config-php_e70eaaecd1.webp "Database configuration in wp-config.php")](https://www.ionos.com/digitalguide/fileadmin/DigitalGuide/Screenshots_2022/database-configuration-in-wp-config-php.png) Database configuration in wp-config.php wp-config.php       ###  Step 6: Install WordPress on a subdomain

Once you have added the database information to the configuration files and saved them, you can finally begin to install WordPress on the subdomain. Paste the following URL into your browser:

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

Replace the preexisting *subdomain.domain.tld* with the address of your subdomain. As soon as you load the URL, the **WordPress installation wizard** will automatically 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 installation. 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 recommended 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 installation](https://www.ionos.com/hosting/wordpress-installation "Install WordPress with IONOS").

---

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](https://login.ionos.com "IONOS Cloud Panel: Login").
2. Go to the “**Domains &amp; SSL**” section and choose the domain your subdomain runs under.
3. Click the “**subdomains**” tab and then click on the “**use domain**” button.
4. Choose the “**create website**” option
5. Click on “**flexible &amp; complete**” and choose WordPress.
6. Give the installation a title and click on “**Create website**”.
7. Create a user and then choose “**Continue with WordPress**”.
8. In the last step, assign the subdomain once again and WordPress will be installed and set up automatically.

[![Image: WordPress installation on a subdomain in IONOS Cloud Panel](https://www.ionos.com/digitalguide/fileadmin/_processed_/6/f/csm_wordpress-installation-auf-subdomain-im-ionos-cloud-panel_79eaa3a4d2.webp "WordPress installation on a subdomain in IONOS Cloud Panel")](https://www.ionos.com/digitalguide/fileadmin/DigitalGuide/Screenshots_2022/wordpress-installation-auf-subdomain-im-ionos-cloud-panel.jpg) WordPress installation on a subdomain in IONOS Cloud Panel       ---

### Tip

Interested in **more information about WordPress**? The following articles contain interesting topics about the popular Content Management System:

- [WordPress domain change](https://www.ionos.com/digitalguide/hosting/blogs/wordpress-domain-change-and-domain-transfer/ "WordPress: domain change and domain transfer")
- [Install WordPress on XAMPP](https://www.ionos.com/digitalguide/hosting/blogs/wordpress-on-xampp/ "WordPress on XAMPP")
- [Create a WordPress backup](https://www.ionos.com/digitalguide/hosting/blogs/create-wordpress-backup/ "Create WordPress backup")
- [Install WordPress on NGINX](https://www.ionos.com/digitalguide/hosting/blogs/wordpress-nginx/)
- [Multilingual WordPress sites](https://www.ionos.com/digitalguide/hosting/blogs/wordpress-multi-language/ "WordPress multi language")

---

### 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 installation. The former requires you to copy all program files into the online storage, the latter uses a ready-to-use app from the provider.

---


This is a markdown version of: [https://www.ionos.com/digitalguide/hosting/blogs/wordpress-on-a-subdomain/](https://www.ionos.com/digitalguide/hosting/blogs/wordpress-on-a-subdomain/) for AI/LLM consumption.