How to install wordpress in a sub-directory?

By installing Wordpress on a sub-directory, you can run multiple wordpress within the same domain or with on a sub-domain. We will show you how you can install and run wordpress on the sub-directory.

Create a sub-directory inside your wordpress installation. 

  1. You can connect your existing wordpress installation using cPanel File manager or using FTP.

  2. Once it is connected, create a sub-directory. 





  3. Let us upload wordpress zip into that sub-directory. Unzip and extract it. 

  4. Add the wordpress database details in wp-config.php

  5. Install wordpress at the installation page

  6. Access the wordpress admin installed within the sub-directory page.  

If there is a separate Wordpress is installed at the root directory, we will need to put the below code in the .htaccess file of your sub-directory. You will need to replace the /subdirectory to your subdirectory name.  

# BEGIN WordPress
RewriteEngine On
RewriteBase /subdirectory/
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /subdirectory/index.php [L]

# END WordPress

This is it. We are done with installing wordpress on a separate sub-directory.

  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

How to manage plugins in WordPress

Video Tutorial Get Wordpress Hosting

How to fix an error SSL certificate problem, verify that the CA cert is OK?

You may encounter this error while performing actions like theme/plugins installation or...

How to install theme in WordPress Website

What is a Theme and why we need it? Themes allow users to change the look and functionality of a...

How to change the Site URL and Home URL Settings in WordPress?

WordPress offers two configurable URLs namely WordPress address and Site address to load the...

How to secure complete backup of your WordPress website?

We do maintain the backup of our shared hosting clients' accounts regularly, however it is highly...