How to Install WordPress in a Subdirectory (Step by Step)

Do you need to set up WordPress in a subdirectory? Installing WordPress in a subdirectory lets in you to run a couple of WordPress circumstances below the similar area and even a subdomain call. In this text, we will be able to display you the way to set up WordPress in a subdirectory with out affecting the dad or mum area call.

Subdomain vs Subdirectory? Which One is Better for search engine marketing?

Normally, you could need to get started a WordPress website online by itself area call (as an example, wpbeginner.com). However, every so often you might have considered trying to create further web sites at the similar area call.

This may also be completed by both putting in WordPress in a subdomain (http://newebsite.instance.com) or as a subdirectory (http://instance.com/newwebsite/).

One query that we get requested is which one is healthier for search engine marketing?

Search engines deal with subdomains in a different way from root domains and assign them ratings as a completely other website online.

On the opposite hand, sub-directories take pleasure in the area authority of the foundation area thus score upper in maximum instances.

An more uncomplicated manner to create separate WordPress websites in each subdomain or subdirectory is by putting in WordPress multisite community.

However, if you need to stay two web sites controlled one at a time, then you’ll be able to set up other circumstances of WordPress.

That being stated, let’s take a have a look at how to set up WordPress in a subdirectory.

Step 1. Create a Subdirectory below The Root Domain Name

First you want to create a subdirectory or folder below your root area call. This is the place you are going to set up WordPress recordsdata.

Connect to your WordPress webhosting account the use of a FTP consumer or File Manager in cPanel.

Once hooked up, move to the foundation folder of your website online. Usually it’s the /public_html/ folder. If you have already got WordPress put in in the foundation folder, then you are going to see your WordPress recordsdata and folders there.

Next, you want to proper click on and make a choice ‘Create new listing’ from the menu.

Create subdirectory

You want to watch out when opting for the call to your subdirectory. This will probably be a part of your new WordPress website online’s URL and what your customers will kind in their browsers to achieve this website online.

For instance, when you call this listing travel-guides then your WordPress website online’s deal with will probably be:

http://instance.com/travel-guides/

New subdirectory created

Step 2. Upload WordPress Files

Your newly created subdirectory is empty in this day and age. Let’s trade that by importing WordPress recordsdata.

First you want to consult with WordPress.org website online and click on at the obtain button.

Download WordPress

Your browser will now obtain the zip document containing the most recent WordPress device to your laptop.

After downloading the document, you want to make a choice and extract it. Mac customers can double click on the document to extract it and Windows customers want to proper click on after which make a choice ‘Extract All’.

After extracting the zip document, you are going to see ‘wordpress’ folder containing all of the WordPress recordsdata.

Now let’s add those recordsdata to your new subdirectory.

Connect to your website online the use of a FTP consumer and move to the subdirectory you created in step one.

In the native recordsdata panel of your FTP consumer, move to to the WordPress folder you simply extracted.

Select all recordsdata in the WordPress folder after which add them to your new subdirectory.

Upload WordPress files to the subdirectory

Step 3. Create New Database

WordPress retail outlets all of your content material in a database. You want to create a new database to use along with your new WordPress website online put in in a subdirectory.

First, you want to login to the cPanel dashboard of your WordPress webhosting account. Click on ‘MySQL Databases’ below the databases phase.

MySQL database

On the following display, you want to supply a call to your new database after which click on on ‘Create Database’ button to proceed.

New database

Your cPanel dashboard will now create the brand new MySQL database. In order to use this database you want to create a MySQL username.

Scroll down to MySQL Users phase and supply a new username and password. Click on ‘Create User’ button to proceed.

New MySQL user

Next, you want to give this newly created person privileges to paintings at the database you created previous.

Scroll down to ‘Add person to database’ phase. Select your MySQL username after which make a choice your newly created database.

Add user to database

Click on Add button to proceed.

Cpanel will now grant the MySQL person complete privileges for your newly created database.

Step 4. Install WordPress

Now that the entirety is in position, you’ll be able to move forward and set up WordPress. Simply consult with the listing you created previous in a internet browser by typing the URL like this:

http://instance.com/your-subdirectory-name/

This will deliver up the WordPress set up wizard. First you want to make a choice the language to your WordPress website online and click on at the proceed button.

Select language

Next, you are going to be requested to supply your WordPress database call, database username, password, and host. Enter the database main points and click on at the post button.

Provide your database details

WordPress will now attach to your database and you are going to see a luck message like this:

WordPress database connected

Click on ‘Run the set up’ button to proceed.

On the following display, you are going to be requested to supply a identify to your website online and make a choice an admin username, password, and electronic mail deal with.

WordPress website details

After getting into your website online main points, click on on ‘Run set up’ button to proceed.

WordPress will now arrange your website online and can display you a luck message:

WordPress successfully installed in the subdirectory

You can now move forward and login to your new WordPress website online put in in the subdirectory.

Step 5. Fix Permalinks

If you will have a separate WordPress set up in the foundation listing, then the .htaccess recordsdata of your subdirectory will reason battle. This will end result in 404 mistakes for your website online.

To clear up this, you want to edit the .htaccess document in your subdirectory WordPress set up. Replace the code inside of your .htaccess document with the next 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 overlook to exchange /your-subdirectory/ with your individual subdirectory call.

We hope this text helped you put in WordPress in a subdirectory. You might also need to see our final step by step WordPress search engine marketing information for inexperienced persons.

If you loved this text, then please subscribe to our YouTube Channel for WordPress video tutorials. You too can in finding us on Twitter and Facebook.

Recent Articles

The Essay Writing Service that is Right For You If you are unsure of how to begin your writing career as college students...

How to Write Research Papers: Finding Professional Staff

In order to construct a research team, the community college or university can supply you with professional staff who can help you execute the...

Essay Assist – Happens Before You Write Your Essay

It can be easy to give in to your urge to write an essay. You can have a well-researched thesis you would like to...

Totally free Slots No Download Zero free spins keep winnings no deposit Registration To have Instantaneous Play

PostsGambling enterprise Greeting Bonus100 % free Slots No Install Zero SubscriptionElectronic pokerTrial Ports Fun The online game provides a keen RTP part of 92.13% and...

Is there a way to stop Windows Script Errors from popping up? : windows

Click on Apply this fix in the dialog to proceed. Press Windows key + I to open up the Settings menu on Windows...

Related Stories

Leave A Reply

Please enter your comment!
Please enter your name here