WordPress GuideHosting → Install WordPress

How to install WordPress on a subdomain

Photo of woman in jean jaclet looking at smart phone

Installing WordPress on a subdomain is one of the easiest ways to launch a new section of your site—without touching your main website. Whether you want to build a blog, create a custom landing page, or test design changes, setting up WordPress on a subdomain gives you a clean slate to work from.

Let’s walk through everything you need to know, from creating the subdomain to running the WordPress installer and getting into your dashboard.

Get fast, reliable hosting for WordPress

Power your site with the industry’s fastest, most optimized WordPress hosting

What is a subdomain and why use one?

A subdomain is a separate section of your website that lives under your main domain name. For example, if your main site is example.com, a subdomain might be blog.example.com, shop.example.com, or dev.example.com.

Subdomains are useful because they let you create a new site or section without needing to buy another domain name. You can run an entirely different WordPress installation on a subdomain, which is perfect for:

Step 1: Create the subdomain in your hosting control panel

The first step is to create the subdomain using your hosting provider’s control panel. Most popular hosts use cPanel or a custom dashboard.

In cPanel:

Once created, your subdomain directory will appear in your file manager. It might take a few minutes to be accessible online due to DNS propagation.

Step 2: Download and upload the WordPress files

Now it’s time to install WordPress on your new subdomain by uploading the core WordPress files.

Double-check that the index.php and wp-config-sample.php files are directly inside the subdomain folder—not inside another folder.

Step 3: Create a new MySQL database and user

WordPress needs a database to store all your content and site settings. You’ll need to create one specifically for the subdomain.

In cPanel:

Write down the:

You’ll need them in the next step.

Step 4: Run the WordPress installation script

With your files uploaded and database ready, it’s time to install WordPress.

Once the install finishes, you’ll see a success message with a button to log in.

Step 5: Log in and start building

You can now log in to your new subdomain’s WordPress dashboard.

Optional: Set up SSL and redirect HTTP to HTTPS

Most hosting plans come with a free SSL certificate, but your subdomain may need one manually installed.

To check and enable SSL:

RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Secure connections protect user data and are better for SEO.

Troubleshooting common issues

Things don’t always go according to plan …

My subdomain isn’t loading.

I see a file list instead of the WordPress installer.

Error establishing a database connection.

Subdomains and SEO

An important consideration to keep in mind is that subdomains are treated as separate sites by search engines like Google. That means blog.example.com is indexed and ranked independently from example.com. This has both advantages and drawbacks depending on how you’re using the subdomain.

Pros of using subdomains for SEO

Cons of using subdomains for SEO

When subdomains make sense

Use a subdomain when the content truly serves a different function or audience than your main site. For example:

If the content is closely tied to your main topic and meant to rank alongside your main site pages, a subdirectory (like example.com/blog) might be better for consolidating SEO value.

Ready to get started?

Get the fastest, most secure WordPress.org hosting on the market.

Additional resources

What is managed WordPress hosting? →

Get details and decide if managed WordPress hosting is right for you.

What’s the difference between WordPress hosting & web hosting? →

Compare WordPress hosting with traditional web hosting to find the best fit for your website’s needs.






A complete guide to WordPress shortcodes →

Shortcodes make life easier. Learn how to get started!

Trust us to help you choose the ideal hosting solution

Loading form…