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 will show you how to install WordPress in a subdirectory without affecting the parent domain name. Normally, you would want to start a WordPress website on its own domain name for example, wpbeginner.
However, sometimes you may want to create additional websites on the same domain name. Search engines treat subdomains differently from root domain names and assign them rankings as a separate website. 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 subdomain or subdirectory is by installing WordPress multisite network. However, if you want to keep two websites managed separately, then 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. 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.
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.
First, you need to create a subdirectory or a folder under the main website. This is where you will install WordPress files. Once connected, go to the root folder of your website. If you already have WordPress installed in the root folder, then you will see your WordPress files and folders there. You need to be careful when choosing the name for your subdirectory. Your newly created subdirectory is empty at the moment.
First you need to visit WordPress. 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.
Connect to your website using an FTP client and go to the subdirectory you created in the first step. 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, you need to login to the cPanel dashboard of your WordPress hosting account. Note: Your hosting dashboard may look different than the screenshot above. Click on the Go Back button to return to the Databases page. Next, you need to give this newly created user privileges to work on the database you created earlier.
Select your MySQL username and then select your newly created database. 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:. 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.
On the next screen, you will be asked to provide a title for your website and choose an admin username, password, and email address. If you have a separate WordPress install in the root directory, then the. This will result in errors on your website.
To solve this, you need to edit the. Replace the code inside your. We hope this article helped you install WordPress in a subdirectory. 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.
Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded , why it matters, and how you can support us. Trusted by over 1. Get FREE access to our toolkit — a collection of WordPress related products and resources that every professional should have!
Glad our guide was helpful. It would depend on why you are unable, if you reach out to your hosting provider they should be able to assist but it may be a permissions issue with your user. Thanks it worked. Is it possible to the subdirectory name on the URL, for example example. If you would like your URLs not to have the subdirectory in the URL we would recommend installing the site on your primary domain rather than creating redirects to remove it from the URL.
Thanks for this article. It is very insightful. Will the installation of WordPress on the sub folder affect the overall speed of the site. It should not. I want to build a web with a wordpress subdirectory, the first web is domain. Using blog for a subdirectory should not have a major effect on SEO.
If it is on a different site even on a subdirectory, the plugins are managed for each individual site. You could also take a look at some recommended tools for managing multiple sites in our article below:. I forgot My Hosting Details.
But I have WP details, is it possible to create subdirectory using wordpress any plugin or other way? You would need access to your hosting, you should be able to reach out to your hosting provider for assistance in being able to log back into your account. Hi, I would like to ask is it possible to copy all the file from my current folder to the sub directory? Because I want to have the same template and plugin for my sub directory site. For a starting point, you could take a look at our guide on how to make a staging site below and instead of installing the site on staging you could have all of your content on the subdomain of your choice and modify the content to be that of your new site.
What if the I created a new subdirectory from another subdirectory, should the fix permalink still be relevant and work with no problem? For example, I have firstwebsite. You would need to include the second subdirectory in the permalink change and it should still work. Is it possible to install WP in a subdirectory but use the main domain URL to access it and still have the main URL displayed in the browser address bar? To clarify: I would install WP in mydomain. It is possible but would depend on your hosting provider to see if it is allowed.
If you reach out to your hosting provider they should be able to assist. Salam, I just finished reading the article and i have question, how can i have the same header and footer from the wordpress installation in parent directory? I manually copied my WordPress files to the root folder, without the plugin. I then copied the original database in a new one, where I replaced the siteurl to reflect the new location, the root folder.
Thanks a lot for WP subfolders step by step guide. One thing that i never undersatnd is how to create a exact Google news xml sitemap in WordPress? Thanks for your article. I have a question about transforming this sub domain or sub directory installed word press to main root of website and replace it with the main site.
Hi Team, Thanks for this post, not only these… all the other posts in your blog are very helpful to us, I really appreciate your works. Thanks a lot for these. Please help me with this. Thank you. I created a new WP Install trough my Host provider, but searching, there is no. WordPress should generate the htaccess file if you resave your permalinks.
Simply login to your cPanel account and look for Softaculous or WordPress installer icon. You will find them under Auto Installers section. Clicking on any of these icons will launch Softaculous auto-installer for WordPress. First, you will see an overview of WordPress.
You need to click on the Install tab to continue. Softaculous will now ask you where you want to install WordPress. After that, you need to choose the domain name where you want to install WordPress. Under this section, first you need to provide a title and description for your WordPress site. Next, you need to choose an admin username, password, and email address. Softaculous will automatically fill in the username and password fields for you. It will use a non-dictionary word for username and a strong password.
You can change them if you want so that they are easy to remember for you. However, we strongly urge you to always use a strong password. See our guide on the best way to manage passwords for WordPress beginners to learn how you can manage strong passwords easily.
Make sure that you enter correct email address in the admin email field. This is where WordPress will send notifications and password reset link if you ever forgot your password. Rest of the options on the screen are optional. You can now click on the install button to run the installer.
Softaculous will run the installer using the settings you provided. You will see a progress bar with installation status. It will take a couple of minutes. You will see a success message after the installation is finished. It will also show you links to your website and to your WordPress admin area. QuickInstall is another popular auto-installer used by many hosting companies like HostGator and others. Scroll down to the Software section and then click on the QuickInstall icon. This will take you to the 1-Click Installers page on QuickInstall.
You will see that it offers installations for most popular web applications including WordPress. You need to click on WordPress to launch the WordPress installer.
The installer will now show you the WordPress overview. You will be asked to select your domain name from the drop-down menu. Most beginners want to install WordPress on the root of their website, for example, wpbeginner. Now click on the next button to continue.
The installer will now ask you to enter WordPress details like username, email address, and site title. QuickInstall will now install WordPress for you. After that, you will see a success message with your login details like username and password. Fantastico is an auto-installer script used by several WordPress hosting providers.
It is similar to the other installer scripts in this guide and offers an easier way to quickly install WordPress. First, you need to login to your cPanel dashboard and scroll down to software and services section, and there you will find the Fantastico icon.
Some hosting providers are still using an older version of Fantastico. In this tutorial we will be showing you screenshots from Fantastico F3 version. Basic installation steps are the same, and you should be able to easily follow them.
On the main Fantastico screen, you will see a list of web applications on your left. You need to click on Blogs, and there you will find WordPress listed among many other applications. Fantastico auto-installer for WordPress will now ask you to fill in your installation settings.
First, you need to choose the domain where you want to install WordPress. If you want to install WordPress in a sub-directory then you can enter the sub-directory name in the field below. Otherwise, make sure that this field is empty.
Enter a username, password, and email address for your WordPress admin account. Fantastico will now install WordPress for you. Once it has finished installing WordPress you will see a success message. Manually installing WordPress is also known as the famous 5 minute install. First thing you need to do is download the latest version of WordPress.
WordPress package comes as a Zip file. You need to unzip the file and inside it, you will find a WordPress folder. This folder contains all the WordPress files you need to upload to your web server. Now go ahead and connect the FTP client to your hosting server. Once connected, use the FTP client to upload the WordPress files from your computer to your website server. If you want to install WordPress on your root domain name like example. On the other hand, If you want to install WordPress in a subfolder like example.
Once you are done uploading WordPress, go to your hosting control panel to create a database. We will be showing you how to do that using the cPanel. If your hosting provider has a different control panel then you just need to look for MySQL databases. Rest of the settings will be quite similar. You will see a field to create a new database. Now that you have created your database, MySQL still needs a username. This username will have access to perform actions on the database. This new user still does not have access to the database you created earlier.
For that, you will need to add the user to the database and give them permissions to perform all actions. Select the database user you created from the dropdown menu next to user, then select the database, and click on the add button. You will be now asked for the privileges you want to allow this user.
Select all privileges and click on the Make changes button. You will need that information later. If it is in the main domain, then enter your domain name in the browser window, like yoursite. You will see the language selection page. You can choose a language here so that the rest of the installation is displayed in your own language.
You can also use English for now and then later change the language. You will now see some installation instructions. WordPress will now show you a form. You need to enter the database information you created earlier. WordPress will connect to your database and show you a success message. WordPress will now create tables in your database and then send you to the next step of the installation. Now you need to provide some information for WordPress to set up your site.
This includes site title, username, password, and admin email address. If you do not want your website to be visible to search engines, then you can check the box next to search engine visibility.
Later when you are ready you can change this from WordPress settings. If you are unsure about what to do, then simply leave it unchecked. Click on the Install WordPress button to continue.
WordPress will set up your website and finish the installation. You will see a success message showing your username. You can now click on the Log in button to sign in to your WordPress site. Many of our beginner level users often ask us if they could try WordPress on their computer?
The answer is yes, but most beginners should not do that. The reason why some folks install WordPress in a local server environment is to build themes, plugins, or to test things out. If you want to run a blog for other people to see, then you do not need to install WordPress on your computer. If you install WordPress locally on your computer, then the only person who can see the site is you. If you want to make your WordPress site available to the internet rest of the world , then you need to get a web hosting account and install WordPress by using one of the methods we showed above.
Having that said, if you are really interested in installing WordPress locally on your computer to learn more about theme development, test plugins etc, then we highly encourage you to do so. If you are using a Mac, then you need to download and setup Mamp. After you have played around with WordPress on your computer you may want to move your local install to an actual live website. We have a step by step tutorial on how to move WordPress from local server to a live site. You can choose a language during the WordPress installation or change it by visiting Settings » General page in the WordPress admin area.
For more details, see our article on how to install WordPress in other languages. WordPress is also used widely to create bilingual and multilingual websites. See our tutorial on how to easily create a multilingual WordPress site with TranslatePress. WordPress comes with multisite functionality built-in. The multisite network allows you to create multiple WordPress sites using the same WordPress install. It can automatically create new sites on sub-domains or in sub-folders.
This makes sense for businesses, non-profits, governments with sub-sites for different locations or regions. Many educational institutes also use WordPress multisite network to allow students to create their own blogs. The setup for a multisite is a bit complex, but we have created a complete step-by-step tutorial on how to install and setup WordPress multisite network.
Now that you have successfully installed WordPress, here are a few things to get started with your new WordPress site. The visual appearance of your WordPress powered website is controlled by Themes. There are thousands of WordPress themes available for you to choose from. With so many choices, it can become a little confusing for beginners. This is why we have put together a guide on selecting the perfect theme for WordPress. We regularly publish lists of WordPress themes that we like in our Showcase section.
Following are some of our popular theme showcases. The real power of WordPress comes from the massive collection of plugins. They are like apps for your WordPress site, allowing you to extend functionality and add new features to your site. There are more than 59, free plugins available in the WordPress plugin directory alone. More plugins are available from third party websites as paid plugins.
If you are wondering which plugins to install, then take a look at our expert pick of the essential WordPress plugins for all websites. WordPress is the easiest to use CMS in the market. Millions of people from all over the world use it every day. However, from time to time you may need a little help.
This is where WPBeginner can help. We are the largest free WordPress resource site in the world, regularly publishing tutorials and guides written specifically for bloggers and small businesses.
Here are some of the useful resources that you will find on WPBeginner all of them are totally free. We hope this WordPress installation tutorial helped you learn how to easily install WordPress. You may want to check out our list of these 40 useful tools to help you manage and grow your WordPress site. 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. Trusted by over 1. Get FREE access to our toolkit — a collection of WordPress related products and resources that every professional should have! Disclosure: Our content is reader-supported.
This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded , why it matters, and how you can support us. Glad you like our content. I am just a beginner is the necessary having purchased domain for Installing WordPress? You do not need to purchase a domain if your hosting provider offers a temporary domain but in the long run, you would want to have a domain.
I am still not able to see the wordpress installation page despite following all the previous steps. I also installed wordpress from my bigrock panel, but no page for wordpress login appears.
We would recommend reaching out to your hosting provider and they can normally assist with ensuring your domain is set up correctly. Ive connect my purchased domain to wordpress but when i try to view the site, it still on under construction page. Do you know any solution to this? You may want to ensure your site does not have a plugin that is adding a coming soon page. If it does there is normally the option to remove that page in your admin area.
Your hosting provider likely created a second installation folder for you to use. WordPress is the software that helps you create your site. Hi — I am interested in rebuilding my site using WordPress and hosting on Bluehost. My site is currently hosted on whois. Should I install WordPress locally, build out my site, then install WordPress on Bluehost, and then ftp the files from my local machine? Hi, really useful posts. Follewed everything to the t using sofalicious.
Do you know how I can go about finding it so I can delete it? Would you recommend me to install WordPress on my laptop in this case? I am a completely begginer with this. I want to install WordPress on my home computer. Programs like WAMP handle MySQL, you would want to take a look at the section covering how to locally install your site with links to our guides for each method.
This is a best guide I have ever seen about WordPress installation Thank you very much You are the best. All I can say is thank you. All fixed now and I know exactly what I was doing wrong. Thank you again. Top work! Glad our guide could help you.
Actually, I am a beginner to WordPress.
0コメント