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.

Related Articles

How to add Google reCaptcha Protection on Wordpress?

Google reCAPTCHA is a free service from Google which helps to protect your websites from spam and...

How to uninstall WordPress completely from cPanel?

You may require to remove Wordpress installation if you have installed it on an incorrect Path or...

What is the difference between wordPress Hosting and Linux SSD Shared Hosting?

Both of the shared hosting plans are almost the same, but the only difference is Wordpress...

How to change the WordPress dashboard language?

When you install the WordPress default language will be English. You can change it from the admin...

How to Migrate / Transfer WordPress Website from WordPress.com to AccuWeb Hosting?

If you have a basic plan at Wordpress.com, you can refer to the below steps and migrate the...

  • 0 Users Found This Useful

Was this answer helpful?