{"id":32434,"date":"2020-02-28T14:43:30","date_gmt":"2020-02-28T20:43:30","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=32434"},"modified":"2022-10-04T09:44:39","modified_gmt":"2022-10-04T14:44:39","slug":"how-to-set-up-wordpress-multisite-with-subdirectories","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-wordpress-multisite-with-subdirectories\/","title":{"rendered":"How to Set up WordPress Multisite with Subdirectories"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"alignnone size-full wp-image-32439\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/how-to-set-up-wordpress-multisite-with-subdirectories.jpg\" alt=\"\" width=\"742\" height=\"372\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/how-to-set-up-wordpress-multisite-with-subdirectories.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/how-to-set-up-wordpress-multisite-with-subdirectories-300x150.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/how-to-set-up-wordpress-multisite-with-subdirectories-150x75.jpg 150w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\n<p>In this tutorial, we&#8217;ll be covering how you can install WordPress in a subdirectory and at the same time leave the parent domain name or WordPress instance unaffected.<\/p>\n<p><img decoding=\"async\" class=\"alignright size-full wp-image-32436\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/setting-up-multisite-wordpress-cms-platform.jpg\" alt=\"\" width=\"120\" height=\"120\" \/>Have you ever considered running another instance of WordPress in a subdirectory? This installation should help you learn how to run multiple WordPress instances under the same domain or subdomain name. This can be useful in some cases, such as running several blogs without having to use separate domain names for each one or having a test blog where you can dry-run changes to plugins and stylesheets without risking anything on your production website. Let&#8217;s get started.<!--more--><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69e67e5605066\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69e67e5605066\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-wordpress-multisite-with-subdirectories\/#Step-1-Installation-of-WordPress\" >Step 1: Installation of WordPress<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-wordpress-multisite-with-subdirectories\/#Step-2-How-to-Create-a-Database-for-WordPress\" >Step 2: How to Create a Database for WordPress<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-wordpress-multisite-with-subdirectories\/#Step-3-Create-a-Subdirectory-under-the-Root-Domain-Name\" >Step 3: Create a Subdirectory under the Root Domain Name<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-wordpress-multisite-with-subdirectories\/#-Step-4-Enabling-Multisite-mode\" >\u00a0Step 4: Enabling Multisite mode<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-wordpress-multisite-with-subdirectories\/#Step-5-Network-Setup\" >Step 5: Network Setup<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Step-1-Installation-of-WordPress\"><\/span>Step 1: Installation of WordPress<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>We can now start with the WordPress installation. We are going to download and place the WordPress installation in the default web server document root directory (<strong>\/var\/www\/html<\/strong>).<\/p>\n<p>Now you should move to this directory with:<\/p>\n<pre>cd \/var\/www\/html<\/pre>\n<p>then download the latest WordPress installation from the official wordpress.org site with <strong>wget<\/strong>:<\/p>\n<pre>wget -c http:\/\/wordpress.org\/latest.zip<\/pre>\n<p>after that you should extract the file with:<\/p>\n<pre>unzip latest.zip<\/pre>\n<p>All the WordPress files would be now placed in the <strong>wordpress<\/strong> directory in <strong>\/var\/www\/html\/wordpress .<\/strong><\/p>\n<p>We should also set the correct permissions of this directory so our Apache web server can access these files. In order to grant ownership of the WordPress files to our Apache web server, run the following command:<\/p>\n<pre>chown -R www-data:www-data \/var\/www\/html\/wordpress<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-2-How-to-Create-a-Database-for-WordPress\"><\/span>Step 2: How to Create a Database for WordPress<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Now, we are going to create our <a href=\"https:\/\/www.rosehosting.com\/blog\/mysql-show-users\/\">MySQL database<\/a> for our WordPress site. First, you should do is to log in to your MySQL server with the following command and enter your MySQL root password:<\/p>\n<pre>mysql -u root -p<\/pre>\n<p>Then to create a new database for our WordPress installation, run the following commands:<\/p>\n<pre>CREATE DATABASE wordpress_db;\r\nGRANT ALL PRIVILEGES ON wordpress_db.* TO 'wordpress_user'@'localhost' IDENTIFIED BY '<span style=\"color: #ff0000;\">PASSWORD<\/span>';\r\nFLUSH PRIVILEGES;\r\nexit;<\/pre>\n<p>The database name (wordpress_db) and the MySQL username (wordpress_user) can be replaced with your own names. You need to change \u201c<span style=\"color: #ff0000;\">PASSWORD<\/span>\u201d with an actual, strong password.<\/p>\n<p>Now that the database creation is done, we need to attach this information to the WordPress configuration file.<\/p>\n<p>Make sure you are inside the <strong>\/var\/www\/html\/wordpress<\/strong> directory and run the following command to rename the sample configuration file:<\/p>\n<pre>mv wp-config-sample.php wp-config.php<\/pre>\n<p>Now open the <strong>wp-config.php<\/strong> file with your favourite text editor, for example:<\/p>\n<pre>nano wp-config.php<\/pre>\n<p>And update the database settings, replacing <strong><em>database_name_here<\/em><\/strong>, <strong><em>username_here<\/em><\/strong> and <strong><em>password_here<\/em><\/strong> with your own details:<\/p>\n<pre>\/\/ ** MySQL settings - You can get this info from your web host ** \/\/\r\n\/** The name of the database for WordPress *\/\r\ndefine('DB_NAME', 'wordpress_db');\r\n\r\n\/** MySQL database username *\/\r\ndefine('DB_USER', 'wordpress_user');\r\n\r\n\/** MySQL database password *\/\r\ndefine('DB_PASSWORD', '<span style=\"color: #ff0000;\">PASSWORD<\/span>');\r\n\r\n\/** MySQL hostname *\/\r\ndefine('DB_HOST', 'localhost');\r\n\r\n\/** Database Charset to use in creating database tables. *\/\r\ndefine('DB_CHARSET', 'utf8');\r\n\r\n\/** The Database Collate type. Don't change this if in doubt. *\/\r\ndefine('DB_COLLATE', '');<\/pre>\n<p>You need to save and then exit the file.<\/p>\n<p>Next, what you need to do is to restart your Apache and MySQL server with:<\/p>\n<pre>systemctl restart apache2\r\nsystemctl restart mysql<\/pre>\n<p>When you finish that, you can now enter your WordPress instance and finish the installation by following the on-screen instructions in your browser at <strong>http:\/\/your_server_ip_address\/wordpress<\/strong><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-3-Create-a-Subdirectory-under-the-Root-Domain-Name\"><\/span>Step 3: Create a Subdirectory under the Root Domain Name<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>First, you need to create a subdirectory or folder under your domain root directory. That will be the place where you will put the new WordPress files.<\/p>\n<p>Once you are logged in, you need to move to the root folder of your website. Usually it is the <strong>\/var\/www\/html\/wordpress\u00a0<\/strong>folder. If you already have WordPress placed in the root folder, then you should be able to see your WordPress files and subfolders there.<\/p>\n<p>It is good to pay more attention by selecting the name for your subdirectory.\u00a0 It will be a segment of your new WordPress site\u2019s URL and what your users will type in their browsers to get to this website.<\/p>\n<p>For example, if you choose to title this directory &#8220;blog&#8221;, then your WordPress website\u2019s address will be:<\/p>\n<pre>http:\/\/<span style=\"color: #ff0000;\">your_domain.com<\/span>\/blog\/<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"-Step-4-Enabling-Multisite-mode\"><\/span>\u00a0Step 4: Enabling Multisite mode<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To enable Multisite mode, you need to edit the parent instance&#8217;s configuration file, like so:<\/p>\n<pre>nano \/var\/www\/html\/wordpress\/wp-config.php<\/pre>\n<p>Once opened\u00a0with our editor, we have to\u00a0locate the line that says:<\/p>\n<pre>\/* That's all, stop editing! Happy blogging. *\/<\/pre>\n<p>And above, we will add the following lines:<\/p>\n<pre>\/** Multisite *\/\r\ndefine('WP_ALLOW_MULTISITE', true);<\/pre>\n<p>Done! Once saved, we can go back to our WordPress admin panel.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-5-Network-Setup\"><\/span>Step 5: Network Setup<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If we refresh our admin\u00a0page, we\u00a0should now find Network Setup under the Tools menu:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-32438\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/wp-tools-menu-2.png\" alt=\"\" width=\"192\" height=\"300\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/wp-tools-menu-2.png 192w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/wp-tools-menu-2-96x150.png 96w\" sizes=\"(max-width: 192px) 100vw, 192px\" \/><\/p>\n<p>In this\u00a0new <strong>Network Setup<\/strong> section, we decide if we want to install\u00a0Multisite to work with <strong>Subdomains<\/strong> or <strong>Subdirectories<\/strong>. In our case, we\u00a0check the Subdirectories option. Optionally we\u00a0can name our network websites as well. Then, click on the <strong>Install<\/strong> button.<\/p>\n<p>Complete the following steps to enable the features for creating a network of sites.<\/p>\n<p><strong>Caution:<\/strong> We recommend you back up your existing <code>wp-config.php<\/code> and <code>.htaccess<\/code> files.<\/p>\n<p>Add the following to your <code>wp-config.php<\/code> file in <code>\/var\/www\/html\/wordpress\/<\/code> <strong>above<\/strong> the line reading <code>\/* That\u2019s all, stop editing! Happy blogging. *\/<\/code>:<\/p>\n<pre>define('MULTISITE', true); \r\ndefine('SUBDOMAIN_INSTALL', false); \r\ndefine('DOMAIN_CURRENT_SITE', '<span style=\"color: #ff0000;\">yourdomain.com<\/span>'); \r\ndefine('PATH_CURRENT_SITE', '\/'); \r\ndefine('SITE_ID_CURRENT_SITE', 1); \r\ndefine('BLOG_ID_CURRENT_SITE', 1);<\/pre>\n<p>This is what we ended up having in our <samp>wp-config.php<\/samp>:<\/p>\n<pre>\/** Multisite *\/ \r\ndefine('WP_ALLOW_MULTISITE', true); \r\ndefine('MULTISITE', true); \r\ndefine('SUBDOMAIN_INSTALL', false); \r\ndefine('DOMAIN_CURRENT_SITE', '<span style=\"color: #ff0000;\">yourdomain.com<\/span>'); \r\ndefine('PATH_CURRENT_SITE', '\/'); \r\ndefine('SITE_ID_CURRENT_SITE', 1); \r\ndefine('BLOG_ID_CURRENT_SITE', 1); \r\n\/* That's all, stop editing! Happy blogging. *\/<\/pre>\n<p>Save and edit that file, then go to your .htaccess file and replace the contents of it with these lines:<\/p>\n<pre>RewriteEngine On\r\nRewriteBase \/\r\nRewriteRule ^index\\.php$ - [L]\r\n\r\n# add a trailing slash to \/wp-admin\r\nRewriteRule ^([_0-9a-zA-Z-]+\/)?wp-admin$ $1wp-admin\/ [R=301,L]\r\n\r\nRewriteCond %{REQUEST_FILENAME} -f [OR]\r\nRewriteCond %{REQUEST_FILENAME} -d\r\nRewriteRule ^ - [L]\r\nRewriteRule ^([_0-9a-zA-Z-]+\/)?(wp-(content|admin|includes).*) $2 [L]\r\nRewriteRule ^([_0-9a-zA-Z-]+\/)?(.*\\.php)$ $2 [L]\r\nRewriteRule . index.php [L]\r\n<\/pre>\n<p>Once we go back to our WordPress Dashboard, we should see our new \u201cMy sites\u201d section.<\/p>\n<p>Now, the <a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-multisite-on-centos-vps-with-apache\/\">WordPress Multisite<\/a> with subdirectories feature has been fully enabled and configured.<\/p>\n<p>All that needs to be done is to go to the dashboard and create your sites.<\/p>\n<hr \/>\n<p><img decoding=\"async\" class=\"alignleft size-full wp-image-32437\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/get-industry-leading-managed-support-for-vps-server-wordpress-cms-help-guide.jpg\" alt=\"\" width=\"120\" height=\"120\" \/>Of course, you don\u2019t have to set up WordPress multisite with subdirectories if you use one of our <a href=\"https:\/\/www.rosehosting.com\/wordpress-hosting.html\">Managed WordPress Hosting<\/a>\u00a0services, in which case you can simply ask our expert system administrators to install WordPress in a subdirectory for you, using the LAMP stack or any other web hosting stack of your choice. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n<p><strong>PS.<\/strong> If you liked this post on how to set up WordPress multisite with subdirectories, or if you found it helpful, please share it with your friends on social networks or simply leave a comment in the comments section. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we&#8217;ll be covering how you can install WordPress in a subdirectory and at the same time leave &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Set up WordPress Multisite with Subdirectories\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-wordpress-multisite-with-subdirectories\/#more-32434\" aria-label=\"Read more about How to Set up WordPress Multisite with Subdirectories\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":32439,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1710,13],"tags":[332,148],"class_list":["post-32434","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cms-crm-erp","category-tutorials","tag-multisite","tag-wordpress","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Set up WordPress Multisite with Subdirectories | RoseHosting<\/title>\n<meta name=\"description\" content=\"How to Set up WordPress Multisite with Subdirectories | RoseHosting\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-wordpress-multisite-with-subdirectories\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Set up WordPress Multisite with Subdirectories\" \/>\n<meta property=\"og:description\" content=\"How to Set up WordPress Multisite with Subdirectories | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-wordpress-multisite-with-subdirectories\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2020-02-28T20:43:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-10-04T14:44:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/how-to-set-up-wordpress-multisite-with-subdirectories.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"372\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-set-up-wordpress-multisite-with-subdirectories\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-set-up-wordpress-multisite-with-subdirectories\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Set up WordPress Multisite with Subdirectories\",\"datePublished\":\"2020-02-28T20:43:30+00:00\",\"dateModified\":\"2022-10-04T14:44:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-set-up-wordpress-multisite-with-subdirectories\\\/\"},\"wordCount\":916,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-set-up-wordpress-multisite-with-subdirectories\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/how-to-set-up-wordpress-multisite-with-subdirectories.jpg\",\"keywords\":[\"multisite\",\"wordpress\"],\"articleSection\":[\"CMS, CRM, ERP\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-set-up-wordpress-multisite-with-subdirectories\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-set-up-wordpress-multisite-with-subdirectories\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-set-up-wordpress-multisite-with-subdirectories\\\/\",\"name\":\"How to Set up WordPress Multisite with Subdirectories | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-set-up-wordpress-multisite-with-subdirectories\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-set-up-wordpress-multisite-with-subdirectories\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/how-to-set-up-wordpress-multisite-with-subdirectories.jpg\",\"datePublished\":\"2020-02-28T20:43:30+00:00\",\"dateModified\":\"2022-10-04T14:44:39+00:00\",\"description\":\"How to Set up WordPress Multisite with Subdirectories | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-set-up-wordpress-multisite-with-subdirectories\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-set-up-wordpress-multisite-with-subdirectories\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-set-up-wordpress-multisite-with-subdirectories\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/how-to-set-up-wordpress-multisite-with-subdirectories.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/how-to-set-up-wordpress-multisite-with-subdirectories.jpg\",\"width\":742,\"height\":372},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-set-up-wordpress-multisite-with-subdirectories\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Set up WordPress Multisite with Subdirectories\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Set up WordPress Multisite with Subdirectories | RoseHosting","description":"How to Set up WordPress Multisite with Subdirectories | RoseHosting","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-wordpress-multisite-with-subdirectories\/","og_locale":"en_US","og_type":"article","og_title":"How to Set up WordPress Multisite with Subdirectories","og_description":"How to Set up WordPress Multisite with Subdirectories | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-wordpress-multisite-with-subdirectories\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2020-02-28T20:43:30+00:00","article_modified_time":"2022-10-04T14:44:39+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/how-to-set-up-wordpress-multisite-with-subdirectories.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-wordpress-multisite-with-subdirectories\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-wordpress-multisite-with-subdirectories\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Set up WordPress Multisite with Subdirectories","datePublished":"2020-02-28T20:43:30+00:00","dateModified":"2022-10-04T14:44:39+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-wordpress-multisite-with-subdirectories\/"},"wordCount":916,"commentCount":2,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-wordpress-multisite-with-subdirectories\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/how-to-set-up-wordpress-multisite-with-subdirectories.jpg","keywords":["multisite","wordpress"],"articleSection":["CMS, CRM, ERP","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-set-up-wordpress-multisite-with-subdirectories\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-wordpress-multisite-with-subdirectories\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-wordpress-multisite-with-subdirectories\/","name":"How to Set up WordPress Multisite with Subdirectories | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-wordpress-multisite-with-subdirectories\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-wordpress-multisite-with-subdirectories\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/how-to-set-up-wordpress-multisite-with-subdirectories.jpg","datePublished":"2020-02-28T20:43:30+00:00","dateModified":"2022-10-04T14:44:39+00:00","description":"How to Set up WordPress Multisite with Subdirectories | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-wordpress-multisite-with-subdirectories\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-set-up-wordpress-multisite-with-subdirectories\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-wordpress-multisite-with-subdirectories\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/how-to-set-up-wordpress-multisite-with-subdirectories.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/how-to-set-up-wordpress-multisite-with-subdirectories.jpg","width":742,"height":372},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-wordpress-multisite-with-subdirectories\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Set up WordPress Multisite with Subdirectories"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/32434","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=32434"}],"version-history":[{"count":4,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/32434\/revisions"}],"predecessor-version":[{"id":43257,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/32434\/revisions\/43257"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/32439"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=32434"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=32434"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=32434"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}