{"id":9198,"date":"2020-07-11T15:00:56","date_gmt":"2020-07-11T13:00:56","guid":{"rendered":"https:\/\/qodeinteractive.com\/magazine\/?p=9198"},"modified":"2020-11-13T13:08:15","modified_gmt":"2020-11-13T12:08:15","slug":"install-wordpress-in-subdirectory","status":"publish","type":"post","link":"https:\/\/qodeinteractive.com\/magazine\/install-wordpress-in-subdirectory\/","title":{"rendered":"When and How to Install WordPress in a Subdirectory"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><p>[vc_row][vc_column][vc_column_text]A website owner might, for various reasons, decide to create additional sites in the same domain. Usually, it is either to segment a subsection of a site (e.g. blog or a shop) or to make a testing environment. The former is done to improve the site\u2019s structure and readability or to target a specific audience. The latter is done to allow for making or testing any site changes safely. To create those additional sites, subdomains or subdirectories should be used. In this article we\u2019ll cover the following topics:<br \/>\n[\/vc_column_text][vc_empty_space height=&#8221;22px&#8221;]<ul class=\"qodef-unordered-list-item qodef-toc\">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#creating-a-new-subdirectory\">Creating a new subdirectory<\/a><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;5px&#8221;]<ul class=\"qodef-unordered-list-item qodef-toc\">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#importing-wordpress-files\">Importing WordPress files<\/a><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;5px&#8221;]<ul class=\"qodef-unordered-list-item qodef-toc\">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#creating-a-database\">Creating a database<\/a><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;5px&#8221;]<ul class=\"qodef-unordered-list-item qodef-toc\">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#completing-the-wordpress-installation\">Completing the WordPress installation<\/a><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;5px&#8221;]<ul class=\"qodef-unordered-list-item qodef-toc\">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#solving-permalink-issues\">Solving permalink issues<\/a><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;70px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\">Subdomain vs Subdirectory<\/h2>\n<p>[\/vc_column_text][vc_column_text]Both a subdomain and a subdirectory are file locations nested inside your root directory often called public_html. The first major difference between the two is the URL path. The URL indicator of a subdomain is to the left of the main site name (e.g. <strong>blog<\/strong>.my-site-name.com), while for the subdirectory it is to the right (e.g. my-site-name.com\/<strong>blog<\/strong>). Another major difference is how those URLs are treated. Subdomains are considered separate websites, while subdirectories are a part of the main site. We will explain further regarding both in the sections below.[\/vc_column_text][vc_empty_space height=&#8221;72px&#8221;][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\">Subdomain<\/h3>\n<p>[\/vc_column_text][vc_column_text]Since subdomains are considered unique sites, they are great for partitioning smaller website parts that have little or no relation to the content on the main domain. As such, subdomains are best suited for bigger websites, in order to target a specific group of users. Examples being foreign language subdomains or dedicated support subdomains. Additionally, more subdomains mean more content and, if properly managed, better SERP ranking. If the subdomains and the main domain have content with little to no connection in between them, you can integrate separate keywords to boost the search rankings even further. However, if there is content overlap, it can lead to keyword dilution.[\/vc_column_text][vc_empty_space height=&#8221;72px&#8221;][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\">Subdirectory<\/h3>\n<p>[\/vc_column_text][vc_column_text]Since subdirectories are considered part of a single website, they are much easier to optimize and they maintain the same SEO benefits as the main domain. The site as a whole is more intuitive for users to navigate, as well. Additionally, editing or moving files containing custom code to a subdirectory is much easier. And any analytics data (e.g. data gathered with Google Analytics) will relate to the whole site.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Knowing all of this, one might ask which of the two is better. However, there\u2019s no clear answer to this; it\u2019s something decided on a case-by-case basis. It\u2019s up to individual users to choose which of the two they need to implement, subdomain or subdirectory. On the other hand, using subdirectories is very popular and preferred for smaller sites that are aiming for a more SEO-friendly strategy.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\">How to Install WordPress in a Subdirectory<\/h2>\n<p>[\/vc_column_text][vc_column_text]Now that we\u2019ve taken a look at subdirectories and their benefits, we can proceed to set one up. We\u2019ve broken the process down into five steps. Some of them can be done both via FTP or via cPanel, so you can pick whichever you prefer to work with. In any case, we advise that you carefully read and follow the instructions.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]<strong>Furthermore, it is important that you think carefully about the subdirectory name beforehand. It will be a part of your URL and, as such, it should represent that part of your site properly while staying user-friendly. If your subdirectory name consists of two or more words, we advise you to use hyphens (-) between them.<\/strong>[\/vc_column_text][vc_empty_space height=&#8221;72px&#8221;][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\"><a id=\"creating-a-new-subdirectory\"><\/a>Creating a New Subdirectory<\/h3>\n<p>[\/vc_column_text][vc_column_text]The main purpose of subdirectories is to divide the website content into several closely related parts, all of which inherit the SEO benefits of the main domain.[\/vc_column_text][vc_empty_space height=&#8221;23px&#8221;]<ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\">Creating a new subdirectory via cPanel<\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_column_text]<strong>Log in to cPanel<\/strong> using your credentials and click on the <strong>File Manager option<\/strong> in the <strong>Files section<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"378\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/File-Manager.jpg\" class=\"attachment-full size-full\" alt=\"File Manager\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/File-Manager.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/File-Manager-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/File-Manager-620x330.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Navigate to your <strong>root WordPress directory<\/strong> (often called <strong>public_html<\/strong>) and click on <strong>the Folder button<\/strong> in the top-left section of the screen. Insert the name of the new folder\u2014this will be the name of your subdirectory\u2014in the popup window and press <strong>the Create New Folder button<\/strong> afterward.<br \/>\n[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/2-Root-WordPress-directory.jpg\" class=\"attachment-full size-full\" alt=\"Root WordPress directory\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/2-Root-WordPress-directory.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/2-Root-WordPress-directory-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/2-Root-WordPress-directory-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;34px&#8221;]<ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\">Creating a new subdirectory via FTP<\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_column_text]The same can be done via FTP if you prefer using it. Start by <a href=\"https:\/\/qodeinteractive.com\/magazine\/how-to-use-ftp\/\">connecting to your server using an FTP<\/a> client. Navigate to your <strong>root WordPress directory<\/strong> (often called <strong>public_html<\/strong>) and right-click on it. Then choose the <strong>Create directory option<\/strong> in the dropdown. Add the directory name afterward, keeping in mind the naming guidelines given above.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/3-Creating-a-new-subdirectory-via-FTP.jpg\" class=\"attachment-full size-full\" alt=\"Creating a new subdirectory via FTP\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/3-Creating-a-new-subdirectory-via-FTP.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/3-Creating-a-new-subdirectory-via-FTP-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/3-Creating-a-new-subdirectory-via-FTP-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;79px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\"><a id=\"importing-wordpress-files\"><\/a>Importing WordPress Files<\/h3>\n<p>[\/vc_column_text][vc_empty_space height=&#8221;26px&#8221;]<ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\">Importing WordPress files via cPanel<\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_column_text]Your newly created folder will be empty, so first, you need to upload the <a href=\"https:\/\/wordpress.org\/download\/\" target=\"_blank\" rel=\"noopener noreferrer\">latest WordPress version<\/a> to it.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"378\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Download-WordPress.jpg\" class=\"attachment-full size-full\" alt=\"Download WordPress\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Download-WordPress.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Download-WordPress-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Download-WordPress-620x330.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]When you press the button, a zipped file with the name wordpress-version_number.zip will be downloaded. Find the downloaded file (most likely located in your Downloads folder).[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Navigate to your <strong>subdirectory folder<\/strong> and <strong>click on Upload<\/strong>, in the top-left section of your screen.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/4-Navigate-to-your-subdirectory-folder-and-click-on-Upload.jpg\" class=\"attachment-full size-full\" alt=\"Navigate to your subdirectory-folder and click on Upload\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/4-Navigate-to-your-subdirectory-folder-and-click-on-Upload.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/4-Navigate-to-your-subdirectory-folder-and-click-on-Upload-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/4-Navigate-to-your-subdirectory-folder-and-click-on-Upload-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Upload the <strong>zipped file<\/strong> and wait until you see that the upload is complete.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/5-Upload-the-zipped-file.jpg\" class=\"attachment-full size-full\" alt=\"Upload the zipped file\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/5-Upload-the-zipped-file.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/5-Upload-the-zipped-file-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/5-Upload-the-zipped-file-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Navigate to the <strong>subdirectory folder<\/strong> once more, click on the uploaded .zip file, and then <strong>press the Extract button<\/strong> in the top section of your page.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/6-Extract-button.jpg\" class=\"attachment-full size-full\" alt=\"Extract button\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/6-Extract-button.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/6-Extract-button-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/6-Extract-button-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Confirm the action by clicking on <strong>the Extract File(s) button<\/strong> in the popup window. Resultantly, your subdirectory now contains an unzipped folder called <em>wordpress<\/em> and the uploaded .zip file. We\u2019re going to change that by removing the now unneeded .zip file.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Click on the .zip file, <strong>press the Delete button<\/strong> and then <strong>confirm the action<\/strong> by pressing the button in the popup window.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/7-Confirm-the-action.jpg\" class=\"attachment-full size-full\" alt=\"Confirm the action\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/7-Confirm-the-action.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/7-Confirm-the-action-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/7-Confirm-the-action-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Afterward, navigate to the <strong>nested wordpress folder<\/strong> (the path should be your-site-name\/your-subdirectory-name\/wordpress) and click on the <strong>Select All<\/strong> button near the top. Then, right-click on the <strong>selected files<\/strong> and press the <strong>Move<\/strong> option. When asked to select the file path for the move, eliminate the <strong>\/wordpress<\/strong> part from the URL and click on the <strong>Move File(s)<\/strong> button.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/8-Nested-wordpress-folder.jpg\" class=\"attachment-full size-full\" alt=\"Nested wordpress folder\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/8-Nested-wordpress-folder.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/8-Nested-wordpress-folder-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/8-Nested-wordpress-folder-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]This will move all the files you selected directly to your-site-name\/new-subdirectory-name. Afterward, delete the unnecessary <em>wordpress<\/em> folder by clicking on it and then selecting the <strong>Delete<\/strong> option followed by the <strong>Confirm<\/strong> button.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/9-Delete-option-followed-by-the-Confirm-button.jpg\" class=\"attachment-full size-full\" alt=\"Delete option followed by the Confirm button\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/9-Delete-option-followed-by-the-Confirm-button.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/9-Delete-option-followed-by-the-Confirm-button-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/9-Delete-option-followed-by-the-Confirm-button-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;34px&#8221;]<ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\">Importing WordPress files via FTP<\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_column_text]Importing WordPress files can be done via FTP, as well. Start by downloading the <a href=\"https:\/\/wordpress.org\/download\/\" target=\"_blank\" rel=\"noopener noreferrer\">latest WordPress version<\/a>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"378\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Download-WordPress.jpg\" class=\"attachment-full size-full\" alt=\"Download WordPress\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Download-WordPress.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Download-WordPress-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Download-WordPress-620x330.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Find the downloaded .zip file (most likely located in your Downloads folder) and extract it to your Desktop. Then, <strong>open the extracted <em>wordpress<\/em> folder and select all the files<\/strong> that it contains; you can do that by pressing Ctrl + A for Windows or Command + A for Macs on your keyboard.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/10-Open-the-extracted-wordpress-folder.jpg\" class=\"attachment-full size-full\" alt=\"Open the extracted wordpress folder\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/10-Open-the-extracted-wordpress-folder.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/10-Open-the-extracted-wordpress-folder-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/10-Open-the-extracted-wordpress-folder-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Afterward, <strong>navigate to your subdirectory folder via FTP<\/strong> and simply drag-and-drop the files to upload them. Wait until the process is completed.<br \/>\n[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/11-Navigate-to-your-subdirectory-folder-via-FTP.jpg\" class=\"attachment-full size-full\" alt=\"Navigate to your subdirectory folder via FTP\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/11-Navigate-to-your-subdirectory-folder-via-FTP.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/11-Navigate-to-your-subdirectory-folder-via-FTP-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/11-Navigate-to-your-subdirectory-folder-via-FTP-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;90px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_separator color=&#8221;custom&#8221; accent_color=&#8221;#f0f0f0&#8243;][vc_empty_space height=&#8221;50px&#8221;][vc_widget_sidebar sidebar_id=&#8221;top-picks-banner&#8221;][vc_empty_space height=&#8221;28px&#8221;][vc_separator color=&#8221;custom&#8221; accent_color=&#8221;#f0f0f0&#8243;][vc_empty_space height=&#8221;80px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\"><a id=\"creating-a-database\"><\/a>Creating a Database<\/h3>\n<p>[\/vc_column_text][vc_column_text]After uploading the WordPress files to your server, the next step toward making a complete WordPress website is creating a database.[\/vc_column_text][vc_empty_space height=&#8221;23px&#8221;]<ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\">Creating a database via cPanel<\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_column_text]You can do this by navigating to cPanel\u2019s main screen once more and <strong>clicking on the MySQL Databases option, located in the Databases section<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"378\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/MySQL-Databases.jpg\" class=\"attachment-full size-full\" alt=\"MySQL Databases\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/MySQL-Databases.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/MySQL-Databases-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/MySQL-Databases-620x330.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Near the top portion of the screen, you will have to <strong>insert the name for your new database and press the Create Database button<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/12-Create-Your-Database.jpg\" class=\"attachment-full size-full\" alt=\"Create Your Database\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/12-Create-Your-Database.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/12-Create-Your-Database-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/12-Create-Your-Database-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Then <strong>scroll down the page to the MySQL Users section<\/strong> and fill in the information (all fields are required) in order to add a new user. <strong>Make sure that you remember or save the username and password you have just entered, as you will need them in the upcoming steps and for future usage, too<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/13-MySQL-Users-section.jpg\" class=\"attachment-full size-full\" alt=\"MySQL Users section\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/13-MySQL-Users-section.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/13-MySQL-Users-section-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/13-MySQL-Users-section-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]After that, select both the newly created database and the user in the Add User To Database subsection. [\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/14-Add-User-To-Database-subsection.jpg\" class=\"attachment-full size-full\" alt=\"Add User To Database subsection\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/14-Add-User-To-Database-subsection.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/14-Add-User-To-Database-subsection-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/14-Add-User-To-Database-subsection-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]You will now need to <strong>assign the necessary user privileges<\/strong> to the newly added user. These settings regulate the actions a user can perform on the database in question. We suggest ticking all boxes and pressing the Make Changes button when you\u2019re done.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/15-Assign-the-necessary-user-privileges.jpg\" class=\"attachment-full size-full\" alt=\"Assign the necessary user privileges\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/15-Assign-the-necessary-user-privileges.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/15-Assign-the-necessary-user-privileges-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/15-Assign-the-necessary-user-privileges-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]These privileges, once set, can be altered at a later time to suit the changing roles of users.[\/vc_column_text][vc_empty_space height=&#8221;23px&#8221;]<ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\">Creating a database via phpMyAdmin<\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_column_text]Another way to create a database is by using phpMyAdmin. This method is more suitable for users working in a local environment using a local server. The database created with this method would later need to be relocated to a live server.<br \/>\n[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]To use this method, <strong>connect to your local phpMyAdmin and click on the Databases tab<\/strong>. Within the Create database section insert the name of your database and <strong>choose Collation as the type<\/strong>. Next, click on the Create button.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/16-Create-database-section.jpg\" class=\"attachment-full size-full\" alt=\"Create database section\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/16-Create-database-section.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/16-Create-database-section-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/16-Create-database-section-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]<strong>Once you have created the database you will need to create a user for it<\/strong>. To do so navigate to the User accounts tab and click on Add new account.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/17-Create-a-user-for-database.jpg\" class=\"attachment-full size-full\" alt=\"Create a user for database\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/17-Create-a-user-for-database.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/17-Create-a-user-for-database-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/17-Create-a-user-for-database-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Next, set your new username, put <em>localhost<\/em> as the host name, and assign a password, as shown in the screenshot below.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/18-Assign-a-password.jpg\" class=\"attachment-full size-full\" alt=\"Assign a password\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/18-Assign-a-password.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/18-Assign-a-password-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/18-Assign-a-password-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]When you\u2019re done, scroll to the bottom-right part of your screen and <strong>click on the Go button<\/strong>. [\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Make sure to leave the permissions as they are since the default setting will allow the newly created user to perform any task on all of the databases. If you\u2019d like to change this, follow along with the remaining step.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]In order to assign different user privileges, <strong>open the User accounts tab<\/strong> once again, locate the row containing the new user, and press <strong>Edit privileges<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/19-Edit-privileges.jpg\" class=\"attachment-full size-full\" alt=\"Edit privileges\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/19-Edit-privileges.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/19-Edit-privileges-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/19-Edit-privileges-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]In the top-left part of the screen <strong>click on the Database tab<\/strong>, select the database you want to work on, and click on Go.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/21-Database-tab.jpg\" class=\"attachment-full size-full\" alt=\"Database tab\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/21-Database-tab.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/21-Database-tab-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/21-Database-tab-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Finally, <strong>assign the database-specific privileges<\/strong> and click on the Go button.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/20-Edit-privileges.jpg\" class=\"attachment-full size-full\" alt=\"Edit privileges\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/20-Edit-privileges.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/20-Edit-privileges-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/20-Edit-privileges-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Now that you\u2019ve created a database you can continue to set up your website locally or simply export the new database and import it within your cPanel\u2019s phpMyAdmin.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]You can export the database by opening the Export tab while in phpMyAdmin. If the database you\u2019re transferring is blank, you can use the Quick export method. Leave the format as SQL and click the Go button.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"378\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Export-tab.jpg\" class=\"attachment-full size-full\" alt=\"Export tab\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Export-tab.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Export-tab-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Export-tab-620x330.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]This will start the download of the database file, which will have the .sql extension. Save it to your computer. You will be able to use the import function with this file to transfer the database to your live server.[\/vc_column_text][vc_empty_space height=&#8221;72px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\"><a id=\"completing-the-wordpress-installation\"><\/a>Completing the WordPress Installation<\/h3>\n<p>[\/vc_column_text][vc_column_text]After finalizing the previous step, open a new browser tab with the URL path <strong>your-site-name\/your-subdirectory-name<\/strong>. From the dropdown that appears, choose a language then click on the Continue button below.<br \/>\n[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"368\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2019\/09\/Install-WordPress-Locally-16.jpg\" class=\"attachment-full size-full\" alt=\"Chose the language\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2019\/09\/Install-WordPress-Locally-16.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2019\/09\/Install-WordPress-Locally-16-300x155.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2019\/09\/Install-WordPress-Locally-16-620x321.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]A new window will appear asking you for basic login information. <strong>The database name, username, and password need to be the same ones you used for creating your database<\/strong>. If the default localhost entry isn\u2019t valid, you should consult your hosting provider. When you have the information you need, press the Let\u2019s go! button.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"378\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2019\/09\/Install-WordPress-Locally-17.jpg\" class=\"attachment-full size-full\" alt=\"Recall the information on the database\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2019\/09\/Install-WordPress-Locally-17.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2019\/09\/Install-WordPress-Locally-17-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2019\/09\/Install-WordPress-Locally-17-620x330.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Insert your database information in the appropriate fields and click on Submit.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/22-Insert-your-database-information.jpg\" class=\"attachment-full size-full\" alt=\"Insert your database information\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/22-Insert-your-database-information.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/22-Insert-your-database-information-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/22-Insert-your-database-information-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]When you\u2019ve successfully finished this step, simply click on the <strong>Run the installation<\/strong> button.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/23-Run-the-installation.jpg\" class=\"attachment-full size-full\" alt=\"Run the installation\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/23-Run-the-installation.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/23-Run-the-installation-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/23-Run-the-installation-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]As the final part of this process, the WordPress installation window will appear. Insert the information needed and press the <strong>Install WordPress<\/strong> button below. <strong>Make sure that you enter the same username and password you used when creating a new user<\/strong>.<br \/>\n[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/Enter-the-same-username-and-password.jpg\" class=\"attachment-full size-full\" alt=\"Enter the same username and password\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/Enter-the-same-username-and-password.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/Enter-the-same-username-and-password-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/Enter-the-same-username-and-password-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]When you\u2019ve completed the WordPress installation process, you will see the Success! screen.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/24-WordPress-installation-process.jpg\" class=\"attachment-full size-full\" alt=\"WordPress installation process\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/24-WordPress-installation-process.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/24-WordPress-installation-process-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/24-WordPress-installation-process-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Click on the Log In button, which will lead you to the login page. Log in with the previously created username and password.[\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column][vc_empty_space height=&#8221;81px&#8221;][vc_separator color=&#8221;custom&#8221; accent_color=&#8221;#f0f0f0&#8243;][vc_empty_space height=&#8221;50px&#8221;][vc_widget_sidebar sidebar_id=&#8221;bridge-banner&#8221;][vc_empty_space height=&#8221;48px&#8221;][vc_separator color=&#8221;custom&#8221; accent_color=&#8221;#f0f0f0&#8243;][vc_empty_space height=&#8221;84px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\"><a id=\"solving-permalink-issues\"><\/a>How to Solve Permalink Issues for WordPress in a Subdirectory<\/h3>\n<p>[\/vc_column_text][vc_column_text]If you intend to run WordPress in both the main domain and the subdirectory, there\u2019s one more thing you need to do. In order for the two .htaccess files (the one from the main domain and the one from the subdirectory) not to be conflicted and cause 404 errors, the .htaccess file from the subdirectory must be changed.[\/vc_column_text][vc_empty_space height=&#8221;23px&#8221;]<ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\">Solving permalink issues with cPanel<\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_column_text]In case you can\u2019t see your subdirectory .htaccess file, make sure to enable showing hidden files.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]You can do so in cPanel by pressing the Settings button in the top-right corner of the screen, then <strong>tick the Show Hidden Files(.dotfiles) option<\/strong> and press the Save button.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/25-Solving-permalink-issues-with-cPanel.jpg\" class=\"attachment-full size-full\" alt=\"Solving permalink issues with cPanel\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/25-Solving-permalink-issues-with-cPanel.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/25-Solving-permalink-issues-with-cPanel-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/25-Solving-permalink-issues-with-cPanel-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]To avoid permalink issues, you need to add the following code to the .htaccess file for the subdirectory. <strong>Make sure to replace your-subdirectory with the actual name of your subdirectory where the .htaccess file is located<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;][vc_column_text]<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># BEGIN WordPress\r\n&lt;IfModule mod_rewrite.c&gt;\r\nRewriteEngine On\r\nRewriteBase \/your-subdirectory\/\r\nRewriteRule ^index\\.php$ - [L]\r\nRewriteCond %{REQUEST_FILENAME} !-f\r\nRewriteCond %{REQUEST_FILENAME} !-d\r\nRewriteRule . \/your-subdirectory\/index.php [L]\r\n&lt;\/IfModule&gt;\r\n# END WordPress<\/pre>\n<p>[\/vc_column_text][vc_empty_space height=&#8221;18px&#8221;][vc_column_text]To make these changes, <strong>navigate to your subdirectory, locate the .htaccess file<\/strong>, then right-click on it and select <strong>Edit<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/26-Make-changes.jpg\" class=\"attachment-full size-full\" alt=\"Make changes\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/26-Make-changes.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/26-Make-changes-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/26-Make-changes-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]<strong>Insert the code shown above<\/strong> with appropriate adjustments that reflect your subdirectory\u2019s information and <strong>press on the Save Changes button<\/strong> in the top-right corner.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/27-Insert-the-code-and-save.jpg\" class=\"attachment-full size-full\" alt=\"Insert the code and save\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/27-Insert-the-code-and-save.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/27-Insert-the-code-and-save-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/27-Insert-the-code-and-save-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;48px&#8221;]<ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\">Solving permalink issues with FTP<\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_column_text]You can do the same via FTP. Connect to your server with your FTP credentials, navigate to your subdirectory, and locate the .htaccess file. If you can\u2019t see it, make sure that <a href=\"https:\/\/qodeinteractive.com\/magazine\/find-htaccess-file-on-wordpress-site\/\">hidden files are shown<\/a>.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Right-click on the file and <strong>select the View\/Edit option<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/28-Solving-permalink-issues-with-FTP.jpg\" class=\"attachment-full size-full\" alt=\"Solving permalink issues with FTP\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/28-Solving-permalink-issues-with-FTP.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/28-Solving-permalink-issues-with-FTP-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/28-Solving-permalink-issues-with-FTP-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Open the file with a text editor, insert the following code (identical to the one above), and save the changes.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;][vc_column_text]<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># BEGIN WordPress\r\n&lt;IfModule mod_rewrite.c&gt;\r\nRewriteEngine On\r\nRewriteBase \/your-subdirectory\/\r\nRewriteRule ^index\\.php$ - [L]\r\nRewriteCond %{REQUEST_FILENAME} !-f\r\nRewriteCond %{REQUEST_FILENAME} !-d\r\nRewriteRule . \/your-subdirectory\/index.php [L]\r\n&lt;\/IfModule&gt;\r\n# END WordPress<\/pre>\n<p>[\/vc_column_text][vc_empty_space height=&#8221;39px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/29-Replace-your-subdirectory.jpg\" class=\"attachment-full size-full\" alt=\"Replace your subdirectory\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/29-Replace-your-subdirectory.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/29-Replace-your-subdirectory-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/07\/29-Replace-your-subdirectory-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]<strong>Make sure to replace your-subdirectory with the actual name of your subdirectory.<\/strong>[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Then simply upload the edited .htaccess file to override the existing one in your subdirectory on the server.[\/vc_column_text][vc_empty_space height=&#8221;68px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\">Final Thoughts<\/h2>\n<p>[\/vc_column_text][vc_column_text]Now that you\u2019ve seen the differences between subdomains and subdirectories, and learned how to make subdirectories, you can weigh the pros and cons of using them. Consider what your aim is, what kind of content you\u2019ll be presenting, and what your SEO targets are. We hope you\u2019ll use the information provided in this guide to choose the best solution for your site and, if you opt to make a subdirectory (or several), we suggest keeping this article close to hand and referring closely to the work steps described.[\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Learn the difference between subdirectories and subdomains and follow our tutorial to see when and how to install WordPress in a subdirectory. <\/p>\n","protected":false},"author":11229,"featured_media":9229,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[14,4,13],"class_list":["post-9198","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-core","tag-tips","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/posts\/9198","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/users\/11229"}],"replies":[{"embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/comments?post=9198"}],"version-history":[{"count":0,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/posts\/9198\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/media\/9229"}],"wp:attachment":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/media?parent=9198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/categories?post=9198"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/tags?post=9198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}