keepcalculator

06 Numbers and Powers

Multiple WordPress Installs in Subfolders: How To

Card No. 06·70923 · Updated · Standard formula, shown below

Average pace 5.00 min/km
Average speed
12.00 km/h
Result
Finish time
50 min
You entered
Distance
10 km
You entered
You enter
Finish time, Distance
You get
Average pace, Average speed
Rounding
2 dp

Yes, you can run multiple WordPress installs in subfolders, and it is a common, well-supported setup. Each subfolder gets its own complete WordPress installation with its own database, plugins, and themes, while sharing the same domain name. This approach works on virtually all hosting providers and is often the simplest way to run several independent sites under one domain.

Formula

The calculator above is unrelated to WordPress; it is a pace calculator. The formula for average pace is:

pace = finish time ÷ distance

Where:

  • t = finish time in minutes
  • d = distance in kilometers

Average speed is the inverse: speed = distance ÷ (time in hours).

Worked Example

Using the default values: t = 50 minutes, d = 10 km.

Pace = 50 ÷ 10 = 5.00 min/km

Speed = 10 ÷ (50/60) = 10 ÷ 0.8333 = 12.00 km/h

So the calculator shows a pace of 5:00 per km and a speed of 12.0 km/h.

Why Run Multiple Installs in Subfolders?

People choose this setup for several practical reasons. A common scenario is a business with a main marketing site (example.com) and a separate blog or client portal (example.com/blog or example.com/portal). Another is a developer or agency hosting multiple small client sites under one domain for testing or staging. Subfolder installs are also useful when you want to keep a legacy site alive while building a new one, or when you need to isolate different WordPress versions or plugin sets for testing.

The key point is that each subfolder install is fully independent. It has its own wp-config.php, its own database tables (usually with a unique prefix), and its own wp-content folder. Updates, plugins, and themes on one install do not affect the others.

How It Works: The Mechanics

WordPress is designed to run from any directory. When you install WordPress into public_html/site1, the site URL becomes example.com/site1. The server simply serves the files in that subfolder as a separate application. The main domain can still run its own WordPress install at the root, or it can be a static site.

Behind the scenes, each install needs:

  • A separate database (or at least separate table prefixes if you share a database).
  • Its own set of files in a unique subfolder.
  • Its own wp-config.php with database credentials.

When you access example.com/site1, WordPress uses the directory structure to load the correct files. The database stores the site URL, and WordPress handles the routing automatically.

How to Set It Up

The process is straightforward, and most hosting control panels (cPanel, Plesk, etc.) make it even easier. Here are the steps for a typical manual installation:

  1. Create the subfolder – In your hosting file manager, create a folder inside public_html (or www), e.g., public_html/site1.
  2. Upload WordPress files – Download the latest WordPress zip from wordpress.org, extract it, and upload the contents into that subfolder.
  3. Create a database – In your hosting control panel, create a new MySQL database and a user with all privileges. Note the database name, username, and password.
  4. Run the installer – Visit example.com/site1 in your browser. WordPress will prompt you to select a language, then ask for database details. Enter them and continue.
  5. Complete the installation – Provide the site title, admin username, and password. Once done, your new install is live at example.com/site1.

If your host offers a one-click installer (like Softaculous), you can often skip the manual steps. Just choose the subfolder as the installation directory.

Common Problems and How to Avoid Them

Several issues can trip up beginners:

  • Missing .htaccess – If permalinks don’t work, ensure the subfolder has its own .htaccess file. WordPress creates it during installation, but if it’s missing, you can add one manually.
  • Database prefix conflicts – If you share a single database, use a unique table prefix for each install (e.g., wp_site1_ and wp_site2_). The default is wp_; changing it avoids collisions.
  • File permissions – Incorrect permissions can cause white screens or upload errors. Typically, folders should be 755 and files 644, but check your host’s documentation.
  • SSL certificate issues – If you use HTTPS, ensure the certificate covers the entire domain, including subfolders. Most modern certificates do.
  • Performance – Each install consumes server resources. On shared hosting, several active installs may slow down. Consider caching plugins or upgrading to VPS if needed.

Subfolders vs. Multisite vs. Subdomains

This is a common comparison. Multisite (WordPress Network) lets you run multiple sites from a single WordPress installation, sharing the core files and database. Subfolder installs are separate, so they are more isolated but require more maintenance. Subdomains (blog.example.com) are similar to subfolders but use a different hostname.

Choose subfolders when you want full independence, easy backups of individual sites, or when you need to run different WordPress versions. Choose multisite when you need a network of sites with shared users or plugins, and you’re comfortable with the added complexity. Subdomains are useful for SEO separation or when you want a distinct brand identity.

Costs and Hosting Considerations

Running multiple installs in subfolders does not usually cost extra on most hosting plans, as long as you stay within your storage and bandwidth limits. However, each install uses database space and server resources. On shared hosting, a few small sites are fine; dozens may require a VPS or dedicated server. Always check your host’s terms regarding the number of websites allowed on a plan.

Frequently Asked Questions

Can I run WordPress in a subfolder and at the root simultaneously?

Yes, you can have a WordPress install at example.com and another at example.com/site1. They will not interfere, as long as the subfolder is not inside the root install’s wp-content folder. The two installs are completely separate.

Will subfolder installs affect my main site’s SEO?

Generally, no. Search engines treat subfolders as part of the same domain, but each WordPress install has its own settings for titles, meta descriptions, and sitemaps. You can control SEO for each install independently. Just ensure you don’t create duplicate content across installs.

Do I need a separate database for each subfolder install?

Not necessarily. You can use one database with different table prefixes, but a separate database is cleaner and easier to manage. Most hosts allow you to create multiple databases. Separate databases also simplify backups and migrations.

How do I update multiple subfolder installs?

You update each one individually, just like a standalone site. Log in to the admin dashboard of each install and run the update. There are also management tools (like MainWP or ManageWP) that can update multiple sites from a single dashboard, but they are third-party services.

Can I move a subfolder install to the root later?

Yes, but it requires care. You would move the files to the root, update the siteurl and home options in the database, and adjust any hardcoded URLs. WordPress has a guide on moving a site, and many plugins can handle the URL change automatically.

Is it safe to use subfolder installs on a live production site?

Yes, it is safe if you follow standard security practices: keep each install updated, use strong passwords, and limit login attempts. The isolation between installs actually improves security because a compromise on one does not automatically affect the others.

Related

Formula used
in t | Finish time | min | 50 | 0
in d | Distance | km | 10 | 0 | 100000
out pace | Average pace | min/km | t / d | 2
out speed | Average speed | km/h | d / (t / 60) | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →