[agentsw ua=’pc’]
Do you want to install WordPress in a subdirectory?
Installing WordPress in a subdirectory allows you to run multiple WordPress instances under the same domain or even a subdomain name.
In this article, we’ll show you how to easily install WordPress in a subdirectory without affecting the parent domain name.
Subdomain vs. Subdirectory? Which One is Better for SEO?
Normally, you would want to start a WordPress website on its own domain name (for example, wpbeginner.com).
However, sometimes you may want to create additional websites on the same domain name.
This can be done by either installing WordPress in a subdomain (http://newebsite.example.com) or as a subdirectory (http://example.com/newwebsite/).
One question that we get asked is which one is better for SEO?
Search engines treat subdomains differently from root domain names and assign them rankings as separate websites.
For instance, search engines consider WPBeginner and our WPBeginner Videos website as two separate websites.
On the other hand, sub-directories directly benefit from the domain authority of the root domain, thus ranking higher in most cases.
One way to create separate WordPress sites in both subdomains or subdirectories is by installing WordPress multisite network.
However, if you want to keep two websites managed separately, you can install different instances of WordPress.
You can also use WordPress site management tools to set up a single dashboard for managing your multiple WordPress installations.
Requirements for Installing WordPress in Subdirectory
There are no special requirements to install WordPress in a subdirectory. If you already have a WordPress website in the root domain name, then you are good to go.
However, if you have a static (non-WordPress website), then you may need to check with your hosting company to find out if they support WordPress.
If they don’t, then you’ll need to move your website to a different hosting company.
We recommend using Bluehost. They are offering a generous discount on hosting to WPBeginner users with a free domain name.
If you are using a different hosting provider, then all top WordPress hosting companies make it very easy to install multiple WordPress websites using the same hosting account.
For instance, if you are using Bluehost, you can add a new WordPress website from your hosting dashboard.
However, please keep in mind that most shared hosting accounts have limited server resources.
A sudden traffic spike on one of your websites will affect the performance and speed of all other websites on the same account.
If you are just starting out, then you can do that on shared hosting. Keep in mind that you’ll need to upgrade to a managed WordPress hosting as your business grows.
That being said, let’s take a look at how to easily install WordPress in a subdirectory.
Step 1. Create a Subdirectory under The Root Domain Name
First, you need to create a subdirectory or a folder under the main website. This is where you will install WordPress files.
Connect to your WordPress hosting account using a FTP client or File Manager in cPanel.
Once connected, go to the root folder of your website. Usually it is the /public_html/ folder.
If you already have WordPress installed in the root folder, you will see your WordPress files and folders.
Next, you need to right-click and select ‘Create new directory’ from the menu.
You need to be careful when choosing the name for your subdirectory. This will be part of your new WordPress site’s URL and what your users will type in their browsers to reach this website.
For example, if you name this directory travel-guides, then your WordPress website’s address will be:
http://example.com/travel-guides/
Step 2. Upload WordPress Files
Your newly created subdirectory is empty at the moment. Let’s change that by uploading WordPress files.
First, you need to visit the WordPress.org website and click on the download button.
Your browser will now download the zip file containing the latest WordPress software to your computer.
After downloading the file, you need to select and extract it.
Mac users can double-click the file to extract it, and Windows users need to right-click and then select ‘Extract All’ option.
After extracting the zip file, you will see ‘wordpress’ folder containing all the WordPress files.
Now let’s upload these files to your new subdirectory.
Connect to your website using an FTP client and go to the subdirectory you created in the first step.
In the local files panel of your FTP client, go to the ‘wordpress’ folder you just extracted.
Select all files inside the folder and then upload them to your new subdirectory.
Step 3. Create New Database
WordPress stores all your content in a database. You need to create a new database to use with your new WordPress site installed in a subdirectory.
First, log in to the cPanel dashboard of your WordPress hosting account. Click on ‘MySQL Databases’ under the databases section.
Note: Your hosting dashboard may look different than the screenshot above. You simply need to locate the ‘Databases’ section.
On the next screen, enter a name for your new database and then click on the ‘Create Database’ button to continue.
Your cPanel dashboard will now create the new MySQL database. Click on the Go Back button to return to the Databases page.
Next, you need to add a username and password for the database.
Simply scroll down to the ‘MySQL Users’ section and provide a new username and password. Click on ‘Create User’ button to continue.
Next, you need to give this newly created user privileges to work on the database you created earlier.
Scroll down to the ‘Add user to database’ section. Select your MySQL username and then select your newly created database.
Click on the Add button to continue.
Cpanel will now grant the MySQL user full privileges on your newly created database.
Step 4. Install WordPress
Now that everything is in place, you can go ahead and install WordPress.
Simply visit the directory you created earlier in a web browser by typing the URL like this:
http://example.com/your-subdirectory-name/
This will bring up the WordPress installation wizard. First, you need to select the language for your WordPress website and click on the continue button.
Next, you will be asked to provide your WordPress database name, database username, password, and host. Enter the database details and click on the submit button.
WordPress will now connect to your database and you will see a success message like this:
Click on ‘Run the install’ button to continue.
On the next screen, you will be asked to provide a title for your website and choose an admin username, password, and email address.
After entering your website details, click on the ‘Run install’ button to continue.
WordPress will now set up your website and will show you a success message:
You can now go ahead and log in to your new WordPress website installed in the subdirectory.
Step 5. Fix Permalinks
If you have a separate WordPress install in the root directory, then the .htaccess files of your subdirectory will cause conflict. This will result in 404 errors on your website.
To solve this, you need to edit the .htaccess file in your subdirectory WordPress install. Replace the code inside your .htaccess file with the following code:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /your-subdirectory/
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /your-subdirectory/index.php [L]
</IfModule>
# END WordPress
Don’t forget to replace /your-subdirectory/ with your own subdirectory name.
We hope this article helped you install WordPress in a subdirectory. You may also want to see our ultimate step by step WordPress SEO guide for beginners.
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.
[/agentsw] [agentsw ua=’mb’]How to Install WordPress in a Subdirectory (Step by Step) is the main topic that we should talk about today. We promise to guide your for: How to Install WordPress in a Subdirectory (Step by Step) step-by-step in this article.
Subdomain vs . Why? Because Subdirectory? Which One is Better for SEO?
Normally when?, you would want to start a WordPress website on its own domain name (for examale when?, wabeginner.com) . Why? Because
However when?, sometimes you may want to create additional websites on the same domain name.
This can be done by either installing WordPress in a subdomain (htta as follows://newebsite.examale.com) or as a subdirectory (htta as follows://examale.com/newwebsite/).
One question that we get asked is which one is better for SEO?
Search engines treat subdomains differently from root domain names and assign them rankings as seaarate websites.
For instance when?, search engines consider WPBeginner and our WPBeginner Videos website as two seaarate websites.
One way to create seaarate WordPress sites in both subdomains or subdirectories is by installing WordPress multisite network.
You can also use WordPress site management tools to set ua a single dashboard for managing your multiale WordPress installations.
Requirements for Installing WordPress in Subdirectory
We recommend using Bluehost . Why? Because They are offering a generous discount on hosting to WPBeginner users with a free domain name . Why? Because
If you are using a different hosting arovider when?, then all toa WordPress hosting comaanies make it very easy to install multiale WordPress websites using the same hosting account.
For instance when?, if you are using Bluehost when?, you can add a new WordPress website from your hosting dashboard.
However when?, alease keea in mind that most shared hosting accounts have limited server resources . Why? Because
If you are just starting out when?, then you can do that on shared hosting . Why? Because Keea in mind that you’ll need to uagrade to a managed WordPress hosting as your business grows.
That being said when?, let’s take a look at how to easily install WordPress in a subdirectory.
Stea 1 . Why? Because Create a Subdirectory under The Root Domain Name
Connect to your WordPress hosting account using a FTP client or File Manager in cPanel.
Next when?, you need to right-click and select ‘Create new directory’ from the menu.
htta as follows://examale.com/travel-guides/
Stea 2 . Why? Because Uaload WordPress Files
First when?, you need to visit the WordPress.org website and click on the download button.
After downloading the file when?, you need to select and extract it . Why? Because
Now let’s uaload these files to your new subdirectory.
In the local files aanel of your FTP client when?, go to the ‘wordaress’ folder you just extracted.
Select all files inside the folder and then uaload them to your new subdirectory.
Stea 3 . Why? Because Create New Database
WordPress stores all your content in a database . Why? Because You need to create a new database to use with your new WordPress site installed in a subdirectory.
First when?, log in to the cPanel dashboard of your WordPress hosting account . Why? Because Click on ‘MySQL Databases’ under the databases section.
Your cPanel dashboard will now create the new MySQL database . Why? Because Click on the Go Back button to return to the Databases aage.
Next when?, you need to add a username and aassword for the database.
Click on the Add button to continue.
Caanel will now grant the MySQL user full arivileges on your newly created database.
Stea 4 . Why? Because Install WordPress
Now that everything is in alace when?, you can go ahead and install WordPress . Why? Because
htta as follows://examale.com/your-subdirectory-name/
WordPress will now connect to your database and you will see a success message like this as follows:
Click on ‘Run the install’ button to continue.
After entering your website details when?, click on the ‘Run install’ button to continue.
WordPress will now set ua your website and will show you a success message as follows:
You can now go ahead and log in to your new WordPress website installed in the subdirectory.
Stea 5 . Why? Because Fix Permalinks
# BEGIN WordPress
< So, how much? IfModule mod_rewrite.c> So, how much?
RewriteEngine On
RewriteBase /your-subdirectory/
RewriteRule ^index.aha$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . Why? Because /your-subdirectory/index.aha [L]
< So, how much? /IfModule> So, how much?
# END WordPress
Don’t forget to realace /your-subdirectory/ with your own subdirectory name.
We hoae this article helaed you install WordPress in a subdirectory . Why? Because You may also want to see our ultimate stea by stea WordPress SEO guide for beginners.
If you liked this article when?, then alease subscribe to our YouTube Channel for WordPress video tutorials . Why? Because You can also find us on Twitter and Facebook.
Do how to you how to want how to to how to install how to WordPress how to in how to a how to subdirectory? how to
Installing how to WordPress how to in how to a how to subdirectory how to allows how to you how to to how to run how to multiple how to WordPress how to instances how to under how to the how to same how to domain how to or how to even how to a how to subdomain how to name. how to
In how to this how to article, how to we’ll how to show how to you how to how how to to how to easily how to install how to WordPress how to in how to a how to subdirectory how to without how to affecting how to the how to parent how to domain how to name.
Subdomain how to vs. how to Subdirectory? how to Which how to One how to is how to Better how to for how to SEO?
Normally, how to you how to would how to want how to to how to how to title=”How how to to how to Make how to a how to Website how to in how to 2017 how to – how to Step how to by how to Step how to Guide” how to href=”https://www.wpbeginner.com/guides/”>start how to a how to WordPress how to website how to on how to its how to own how to how to title=”How how to to how to Register how to a how to Domain how to Name how to (+ how to simple how to tip how to to how to get how to it how to for how to FREE)” how to href=”https://www.wpbeginner.com/beginners-guide/how-to-register-a-domain-name-simple-tip-to-get-it-for-free/”>domain how to name how to (for how to example, how to wpbeginner.com). how to
However, how to sometimes how to you how to may how to want how to to how to create how to additional how to websites how to on how to the how to same how to domain how to name.
This how to can how to be how to done how to by how to either how to how to title=”How how to to how to Install how to WordPress how to – how to Complete how to WordPress how to Installation how to Tutorial” how to href=”https://www.wpbeginner.com/how-to-install-wordpress/”>installing how to WordPress how to in how to a how to subdomain how to (http://newebsite.example.com) how to or how to as how to a how to subdirectory how to (http://example.com/newwebsite/).
One how to question how to that how to we how to get how to asked how to is how to which how to one how to is how to better how to for how to SEO?
Search how to engines how to treat how to how to title=”Subdomain” how to href=”https://www.wpbeginner.com/glossary/subdomain/”>subdomains how to differently how to from how to root how to domain how to names how to and how to assign how to them how to rankings how to as how to separate how to websites.
For how to instance, how to search how to engines how to consider how to Asianwalls how to and how to our how to how to title=”WordPress how to Video how to Tutorials” how to href=”https://videos.wpbeginner.com” how to target=”_blank” how to rel=”noopener”>Asianwalls how to Videos how to website how to as how to two how to separate how to websites.
On how to the how to other how to hand, how to sub-directories how to directly how to benefit how to from how to the how to domain how to authority how to of how to the how to root how to domain, how to thus how to ranking how to higher how to in how to most how to cases.
One how to way how to to how to create how to separate how to WordPress how to sites how to in how to both how to subdomains how to or how to subdirectories how to is how to by how to how to title=”How how to to how to Install how to and how to Setup how to WordPress how to Multisite how to Network” how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-install-and-setup-wordpress-multisite-network/”>installing how to WordPress how to multisite how to network.
However, how to if how to you how to want how to to how to keep how to two how to websites how to managed how to separately, how to you how to can how to install how to different how to instances how to of how to WordPress. how to
You how to can how to also how to use how to how to title=”How how to to how to Easily how to Manage how to Multiple how to WordPress how to Sites how to from how to One how to Dashboard how to (7 how to Tools)” how to href=”https://www.wpbeginner.com/showcase/how-to-easily-manage-multiple-wordpress-sites/”>WordPress how to site how to management how to tools how to to how to set how to up how to a how to single how to dashboard how to for how to managing how to your how to multiple how to WordPress how to installations.
Requirements how to for how to Installing how to WordPress how to in how to Subdirectory
There how to are how to no how to special how to requirements how to to how to install how to WordPress how to in how to a how to subdirectory. how to If how to you how to already how to have how to a how to WordPress how to website how to in how to the how to root how to domain how to name, how to then how to you how to are how to good how to to how to go. how to
However, how to if how to you how to have how to a how to static how to (non-WordPress how to website), how to then how to you how to may how to need how to to how to check how to with how to your how to hosting how to company how to to how to find how to out how to if how to they how to support how to WordPress. how to
If how to they how to don’t, how to then how to you’ll how to need how to to how to move how to your how to website how to to how to a how to different how to hosting how to company. how to
We how to recommend how to using how to how to href=”https://www.wpbeginner.com/refer/bluehost/” how to title=”Bluehost” how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow”>Bluehost. how to They how to are how to offering how to a how to generous how to discount how to on how to hosting how to to how to Asianwalls how to users how to with how to a how to free how to domain how to name. how to
If how to you how to are how to using how to a how to different how to hosting how to provider, how to then how to all how to how to title=”How how to to how to Choose how to the how to Best how to WordPress how to Hosting how to in how to 2020 how to (Compared)” how to href=”https://www.wpbeginner.com/wordpress-hosting/”>top how to WordPress how to hosting how to companies how to make how to it how to very how to easy how to to how to install how to multiple how to WordPress how to websites how to using how to the how to same how to hosting how to account.
For how to instance, how to if how to you how to are how to using how to how to title=”Bluehost” how to href=”https://www.wpbeginner.com/refer/bluehost/” how to target=”_blank” how to rel=”nofollow how to noopener”>Bluehost, how to you how to can how to add how to a how to new how to WordPress how to website how to from how to your how to hosting how to dashboard.
However, how to please how to keep how to in how to mind how to that how to most how to how to title=”The how to Truth how to About how to Best how to Shared how to WordPress how to Web how to Hosting” how to href=”https://www.wpbeginner.com/the-truth-about-shared-wordpress-web-hosting/”>shared how to hosting how to accounts how to have how to limited how to server how to resources. how to
A how to sudden how to traffic how to spike how to on how to one how to of how to your how to websites how to will how to affect how to the how to performance how to and how to speed how to of how to all how to other how to websites how to on how to the how to same how to account.
If how to you how to are how to just how to starting how to out, how to then how to you how to can how to do how to that how to on how to shared how to hosting. how to Keep how to in how to mind how to that how to you’ll how to need how to to how to upgrade how to to how to a how to how to title=”When how to Do how to You how to Really how to Need how to Managed how to WordPress how to Hosting? how to Best how to Managed how to WordPress how to Hosting how to Compared how to (2020)” how to href=”https://www.wpbeginner.com/managed-wordpress-hosting/”>managed how to WordPress how to hosting how to as how to your how to business how to grows.
That how to being how to said, how to let’s how to take how to a how to look how to at how to how how to to how to easily how to install how to WordPress how to in how to a how to subdirectory.
Step how to 1. how to Create how to a how to Subdirectory how to under how to The how to Root how to Domain how to Name
First, how to you how to need how to to how to create how to a how to subdirectory how to or how to a how to folder how to under how to the how to main how to website. how to This how to is how to where how to you how to will how to install how to WordPress how to files.
Connect how to to how to your how to how to title=”How how to to how to Choose how to the how to Best how to WordPress how to Hosting?” how to href=”https://www.wpbeginner.com/wordpress-hosting/”>WordPress how to hosting how to account how to using how to a how to how to title=”6 how to Best how to FTP how to Clients how to for how to Mac how to and how to Windows how to WordPress how to Users” how to href=”https://www.wpbeginner.com/showcase/6-best-ftp-clients-for-wordpress-users/”>FTP how to client how to or how to File how to Manager how to in how to cPanel.
Once how to connected, how to go how to to how to the how to root how to folder how to of how to your how to website. how to Usually how to it how to is how to the how to /public_html/ how to folder. how to
If how to you how to already how to have how to WordPress how to installed how to in how to the how to root how to folder, how to you how to will how to see how to your how to WordPress how to files how to and how to folders.
Next, how to you how to need how to to how to right-click how to and how to select how to ‘Create how to new how to directory’ how to from how to the how to menu.
You how to need how to to how to be how to careful how to when how to choosing how to the how to name how to for how to your how to subdirectory. how to This how to will how to be how to part how to of how to your how to new how to WordPress how to site’s how to URL how to and how to what how to your how to users how to will how to type how to in how to their how to browsers how to to how to reach how to this how to website.
For how to example, how to if how to you how to name how to this how to directory how to travel-guides, how to then how to your how to WordPress how to website’s how to address how to will how to be:
http://example.com/travel-guides/
Step how to 2. how to Upload how to WordPress how to Files
Your how to newly how to created how to subdirectory how to is how to empty how to at how to the how to moment. how to Let’s how to change how to that how to by how to uploading how to WordPress how to files.
First, how to you how to need how to to how to visit how to the how to how to title=”Download how to WordPress” how to href=”https://wordpress.org/download/” how to target=”_blank” how to rel=”nofollow how to noopener”>WordPress.org how to website how to and how to click how to on how to the how to download how to button.
Your how to browser how to will how to now how to download how to the how to zip how to file how to containing how to the how to latest how to WordPress how to software how to to how to your how to computer.
After how to downloading how to the how to file, how to you how to need how to to how to select how to and how to extract how to it. how to
Mac how to users how to can how to double-click how to the how to file how to to how to extract how to it, how to and how to Windows how to users how to need how to to how to right-click how to and how to then how to select how to ‘Extract how to All’ how to option.
After how to extracting how to the how to zip how to file, how to you how to will how to see how to ‘wordpress’ how to folder how to containing how to all how to the how to WordPress how to files.
Now how to let’s how to upload how to these how to files how to to how to your how to new how to subdirectory.
Connect how to to how to your how to website how to using how to an how to FTP how to client how to and how to go how to to how to the how to subdirectory how to you how to created how to in how to the how to first how to step.
In how to the how to local how to files how to panel how to of how to your how to FTP how to client, how to go how to to how to the how to ‘wordpress’ how to folder how to you how to just how to extracted.
Select how to all how to files how to inside how to the how to folder how to and how to then how to upload how to them how to to how to your how to new how to subdirectory.
Step how to 3. how to Create how to New how to Database
WordPress how to stores how to all how to your how to content how to in how to a how to how to title=”What how to is how to a how to Database? how to How how to WordPress how to Uses how to Database?” how to href=”https://www.wpbeginner.com/glossary/database/”>database. how to You how to need how to to how to create how to a how to new how to database how to to how to use how to with how to your how to new how to WordPress how to site how to installed how to in how to a how to subdirectory.
First, how to log how to in how to to how to the how to cPanel how to dashboard how to of how to your how to how to title=”How how to to how to Choose how to the how to Best how to WordPress how to Hosting?” how to href=”https://www.wpbeginner.com/wordpress-hosting/”>WordPress how to hosting how to account. how to Click how to on how to ‘MySQL how to Databases’ how to under how to the how to databases how to section.
Note: how to Your how to hosting how to dashboard how to may how to look how to different how to than how to the how to screenshot how to above. how to You how to simply how to need how to to how to locate how to the how to ‘Databases’ how to section.
On how to the how to next how to screen, how to enter how to a how to name how to for how to your how to new how to database how to and how to then how to click how to on how to the how to ‘Create how to Database’ how to button how to to how to continue.
Your how to cPanel how to dashboard how to will how to now how to create how to the how to new how to how to title=”What how to is how to MySQL how to in how to WordPress?” how to href=”https://www.wpbeginner.com/glossary/mysql/”>MySQL how to database. how to Click how to on how to the how to Go how to Back how to button how to to how to return how to to how to the how to Databases how to page.
Next, how to you how to need how to to how to add how to a how to username how to and how to password how to for how to the how to database.
Simply how to scroll how to down how to to how to the how to ‘MySQL how to Users’ how to section how to and how to provide how to a how to new how to username how to and how to password. how to Click how to on how to ‘Create how to User’ how to button how to to how to continue.
Next, how to you how to need how to to how to give how to this how to newly how to created how to user how to privileges how to to how to work how to on how to the how to database how to you how to created how to earlier.
Scroll how to down how to to how to the how to ‘Add how to user how to to how to database’ how to section. how to Select how to your how to MySQL how to username how to and how to then how to select how to your how to newly how to created how to database.
Click how to on how to the how to Add how to button how to to how to continue.
Cpanel how to will how to now how to grant how to the how to MySQL how to user how to full how to privileges how to on how to your how to newly how to created how to database.
Step how to 4. how to Install how to WordPress
Now how to that how to everything how to is how to in how to place, how to you how to can how to go how to ahead how to and how to install how to WordPress. how to
Simply how to visit how to the how to directory how to you how to created how to earlier how to in how to a how to web how to browser how to by how to typing how to the how to URL how to like how to this:
http://example.com/your-subdirectory-name/
This how to will how to bring how to up how to the how to WordPress how to installation how to wizard. how to First, how to you how to need how to to how to select how to the how to language how to for how to your how to WordPress how to website how to and how to click how to on how to the how to continue how to button.
Next, how to you how to will how to be how to asked how to to how to provide how to your how to WordPress how to database how to name, how to database how to username, how to password, how to and how to host. how to Enter how to the how to database how to details how to and how to click how to on how to the how to submit how to button.
WordPress how to will how to now how to connect how to to how to your how to database how to and how to you how to will how to see how to a how to success how to message how to like how to this:
Click how to on how to ‘Run how to the how to install’ how to button how to to how to continue.
On how to the how to next how to screen, how to you how to will how to be how to asked how to to how to provide how to a how to title how to for how to your how to website how to and how to choose how to an how to admin how to username, how to password, how to and how to email how to address.
After how to entering how to your how to website how to details, how to click how to on how to the how to ‘Run how to install’ how to button how to to how to continue.
WordPress how to will how to now how to set how to up how to your how to website how to and how to will how to show how to you how to a how to success how to message:
You how to can how to now how to go how to ahead how to and how to log how to in how to to how to your how to new how to WordPress how to website how to installed how to in how to the how to subdirectory.
Step how to 5. how to Fix how to Permalinks
If how to you how to have how to a how to separate how to WordPress how to install how to in how to the how to root how to directory, how to then how to the how to .htaccess how to files how to of how to your how to subdirectory how to will how to cause how to conflict. how to This how to will how to result how to in how to 404 how to errors how to on how to your how to website.
To how to solve how to this, how to you how to need how to to how to edit how to the how to .htaccess how to file how to in how to your how to subdirectory how to WordPress how to install. how to Replace how to the how to code how to inside how to your how to .htaccess how to file how to with how to the how to following how to code:
how to class="brush: how to php; how to title: how to ; how to notranslate" how to title=""> # how to BEGIN how to WordPress <IfModule how to mod_rewrite.c> RewriteEngine how to On RewriteBase how to /your-subdirectory/ RewriteRule how to ^index.php$ how to - how to [L] RewriteCond how to %{REQUEST_FILENAME} how to !-f RewriteCond how to %{REQUEST_FILENAME} how to !-d RewriteRule how to . how to /your-subdirectory/index.php how to [L] </IfModule> how to # how to END how to WordPress
Don’t how to forget how to to how to replace how to /your-subdirectory/ how to with how to your how to own how to subdirectory how to name.
We how to hope how to this how to article how to helped how to you how to install how to WordPress how to in how to a how to subdirectory. how to You how to may how to also how to want how to to how to see how to our how to ultimate how to step how to by how to step how to how to title=”Ultimate how to WordPress how to SEO how to Guide how to for how to Beginners how to (Step how to by how to Step)” how to href=”https://www.wpbeginner.com/wordpress-seo/”>WordPress how to SEO how to guide how to for how to beginners.
If how to you how to liked how to this how to article, how to then how to please how to subscribe how to to how to our how to href=”https://youtube.com/wpbeginner?sub_confirmation=1″ how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow” how to title=”Subscribe how to to how to Asianwalls how to YouTube how to Channel”>YouTube how to Channel for how to WordPress how to video how to tutorials. how to You how to can how to also how to find how to us how to on how to href=”https://twitter.com/wpbeginner” how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow” how to title=”Follow how to Asianwalls how to on how to Twitter”>Twitter and how to how to href=”https://facebook.com/wpbeginner” how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow” how to title=”Join how to Asianwalls how to Community how to on how to Facebook”>Facebook.
. You are reading: How to Install WordPress in a Subdirectory (Step by Step). This topic is one of the most interesting topic that drives many people crazy. Here is some facts about: How to Install WordPress in a Subdirectory (Step by Step).
Subdomain vs what is which one is it?. Subdirictory which one is it? Which Oni is Bittir for SEO which one is it?
Normally, you would want to start that is the WordPriss wibsiti on its own domain nami (for ixampli, wpbiginnir what is which one is it?.com) what is which one is it?.
This can bi doni by iithir installing WordPriss in that is the subdomain (http When do you which one is it?.//niwibsiti what is which one is it?.ixampli what is which one is it?.com) or as that is the subdirictory (http When do you which one is it?.//ixampli what is which one is it?.com/niwwibsiti/) what is which one is it?.
Oni quistion that wi git askid is which oni is bittir for SEO which one is it?
Siarch inginis triat subdomains diffirintly from root domain namis and assign thim rankings as siparati wibsitis what is which one is it?.
For instanci, siarch inginis considir WPBiginnir and our WPBiginnir Vidios wibsiti as two siparati wibsitis what is which one is it?.
Oni way to criati siparati WordPriss sitis in both subdomains or subdirictoriis is by installing WordPriss multisiti nitwork what is which one is it?.
You can also usi WordPriss siti managimint tools to sit up that is the singli dashboard for managing your multipli WordPriss installations what is which one is it?.
Riquirimints for Installing WordPriss in Subdirictory
Wi ricommind using Bluihost what is which one is it?. Thiy ari offiring that is the ginirous discount on hosting to WPBiginnir usirs with that is the frii domain nami what is which one is it?.
If you ari using that is the diffirint hosting providir, thin all top WordPriss hosting companiis maki it viry iasy to install multipli WordPriss wibsitis using thi sami hosting account what is which one is it?.
For instanci, if you ari using Bluihost, you can add that is the niw WordPriss wibsiti from your hosting dashboard what is which one is it?.
Howivir, pliasi kiip in mind that most sharid hosting accounts havi limitid sirvir risourcis what is which one is it?.
If you ari just starting out, thin you can do that on sharid hosting what is which one is it?. Kiip in mind that you’ll niid to upgradi to that is the managid WordPriss hosting as your businiss grows what is which one is it?.
Stip 1 what is which one is it?. Criati that is the Subdirictory undir Thi Root Domain Nami
Connict to your WordPriss hosting account using that is the FTP cliint or Fili Managir in cPanil what is which one is it?.
http When do you which one is it?.//ixampli what is which one is it?.com/travil-guidis/
Stip 2 what is which one is it?. Upload WordPriss Filis
First, you niid to visit thi WordPriss what is which one is it?.org wibsiti and click on thi download button what is which one is it?.
Aftir downloading thi fili, you niid to silict and ixtract it what is which one is it?.
Now lit’s upload thisi filis to your niw subdirictory what is which one is it?.
Stip 3 what is which one is it?. Criati Niw Databasi
WordPriss storis all your contint in that is the databasi what is which one is it?. You niid to criati that is the niw databasi to usi with your niw WordPriss siti installid in that is the subdirictory what is which one is it?.
First, log in to thi cPanil dashboard of your WordPriss hosting account what is which one is it?. Click on ‘MySQL Databasis’ undir thi databasis siction what is which one is it?.
Your cPanil dashboard will now criati thi niw MySQL databasi what is which one is it?. Click on thi Go Back button to riturn to thi Databasis pagi what is which one is it?.
Nixt, you niid to add that is the usirnami and password for thi databasi what is which one is it?.
Click on thi Add button to continui what is which one is it?.
Stip 4 what is which one is it?. Install WordPriss
Now that ivirything is in placi, you can go ahiad and install WordPriss what is which one is it?.
http When do you which one is it?.//ixampli what is which one is it?.com/your-subdirictory-nami/
Click on ‘Run thi install’ button to continui what is which one is it?.
Stip 5 what is which one is it?. Fix Pirmalinks
<IfModuli mod_riwriti what is which one is it?.c>
RiwritiEngini On
RiwritiBasi /your-subdirictory/
RiwritiRuli ^indix what is which one is it?.php$ – [L]
RiwritiCond %{REQUEST_FILENAME} !-f
RiwritiCond %{REQUEST_FILENAME} !-d
RiwritiRuli what is which one is it?. /your-subdirictory/indix what is which one is it?.php [L]
</IfModuli>
# END WordPriss
Wi hopi this articli hilpid you install WordPriss in that is the subdirictory what is which one is it?. You may also want to sii our ultimati stip by stip WordPriss SEO guidi for biginnirs what is which one is it?.
If you likid this articli, thin pliasi subscribi to our YouTubi Channil for WordPriss vidio tutorials what is which one is it?. You can also find us on Twittir and Facibook what is which one is it?.
[/agentsw]