{"id":277,"date":"2016-11-28T17:49:29","date_gmt":"2016-11-28T17:49:29","guid":{"rendered":"https:\/\/www.annawerner.de\/?p=277"},"modified":"2018-01-11T08:52:30","modified_gmt":"2018-01-11T08:52:30","slug":"how-to-change-a-multisite-subdirectory-to-the-primary-domain","status":"publish","type":"post","link":"https:\/\/annaschneider.me\/blog\/how-to-change-a-multisite-subdirectory-to-the-primary-domain\/","title":{"rendered":"How to change a multisite subdirectory to the primary domain"},"content":{"rendered":"<p>Working with Multisite in WordPress has many advantages. You can easily manage and create similar websites, while they still act as separate sites for visitors. While you can easily change subdomain directories from one to another, replacing the main domain with a subdirectories content and vice versa is a different topic. It happened to me lately, when building the relaunch of a website with a multisite and there are probably many more reasons for this case to happen.<\/p>\n<p>If you are switching subdirectory urls, you can just do so in the \u201eSites\u201c Menu as a Super Admin. But that is not possible for the primary site. Instead, you will have to change the settings in the database and the wp-config file.<\/p>\n<p>First thing you should do, is to take a backup of your database. Don\u2019t start without having one!<\/p>\n<h2>Changing the database values<\/h2>\n<p>When changing the primary domain of your site, there are a few values to change in the database: (wp_ is the database prefix. If you are using something else (xxx), look for xxx_\u2026)<\/p>\n<p>And ALWAYS be careful about the exact URLs you are changing. WordPress has different rules for different fields. The wp_site and wp_blogs tables can NOT have http:\/\/ or a trailing slash at the end of the domain name, whereas in the wp_options table, it is required to have the http:\/\/ at the beginning. In the wp_sitemeta table it is required to have http:\/\/ at the beginning and a trailing slash at the end.<\/p>\n<p>Make sure, whenever you implement a new URL, to use the same format as the one it says when opening the database field.<\/p>\n<h3>The current primary domain:<\/h3>\n<p>You will need the tables wp_options, wp_site, wp_sitemeta and wp_blogs<\/p>\n<table width=\"899\">\n<tbody>\n<tr>\n<td><strong>Database Table<\/strong><\/td>\n<td><strong>Values to change<\/strong><\/td>\n<\/tr>\n<tr>\n<td>wp_options<\/td>\n<td>\n<ul>\n<li>change primary <strong>siteurl<\/strong> to its new url<\/li>\n<li>change primary <strong>home<\/strong> url to its new url (this might be on page 2)<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>wp_site<\/td>\n<td>\n<ul>\n<li>change primary <strong>domain<\/strong> url to its new url<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>wp_sitemeta<\/td>\n<td>\n<ul>\n<li>change primary <strong>siteurl<\/strong> to its new url<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>wp_blogs<\/td>\n<td>\n<ul>\n<li>change the <strong>paths<\/strong> of the primary domain to its new path<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\n\t\t<style type=\"text\/css\">\n\t\t\t#gallery-1 {\n\t\t\t\tmargin: auto;\n\t\t\t}\n\t\t\t#gallery-1 .gallery-item {\n\t\t\t\tfloat: left;\n\t\t\t\tmargin-top: 10px;\n\t\t\t\ttext-align: center;\n\t\t\t\twidth: 33%;\n\t\t\t}\n\t\t\t#gallery-1 img {\n\t\t\t\tborder: 2px solid #cfcfcf;\n\t\t\t}\n\t\t\t#gallery-1 .gallery-caption {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\t\t\t\/* see gallery_shortcode() in wp-includes\/media.php *\/\n\t\t<\/style>\n\t\t<div id='gallery-1' class='gallery galleryid-277 gallery-columns-3 gallery-size-thumbnail'><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/11\/wp_options.png'><img decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/11\/wp_options-150x150.png\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-283\" \/><\/a>\n\t\t\t<\/dt>\n\t\t\t\t<dd class='wp-caption-text gallery-caption' id='gallery-1-283'>\n\t\t\t\twp_options siteurl\n\t\t\t\t<\/dd><\/dl><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/11\/wp_options2.png'><img decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/11\/wp_options2-150x150.png\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-282\" \/><\/a>\n\t\t\t<\/dt>\n\t\t\t\t<dd class='wp-caption-text gallery-caption' id='gallery-1-282'>\n\t\t\t\twp_options home\n\t\t\t\t<\/dd><\/dl><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/11\/wp_site.png'><img decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/11\/wp_site-150x150.png\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-281\" \/><\/a>\n\t\t\t<\/dt>\n\t\t\t\t<dd class='wp-caption-text gallery-caption' id='gallery-1-281'>\n\t\t\t\twp_site\n\t\t\t\t<\/dd><\/dl><br style=\"clear: both\" \/>\n\t\t<\/div>\n\n\n\t\t<style type=\"text\/css\">\n\t\t\t#gallery-2 {\n\t\t\t\tmargin: auto;\n\t\t\t}\n\t\t\t#gallery-2 .gallery-item {\n\t\t\t\tfloat: left;\n\t\t\t\tmargin-top: 10px;\n\t\t\t\ttext-align: center;\n\t\t\t\twidth: 33%;\n\t\t\t}\n\t\t\t#gallery-2 img {\n\t\t\t\tborder: 2px solid #cfcfcf;\n\t\t\t}\n\t\t\t#gallery-2 .gallery-caption {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\t\t\t\/* see gallery_shortcode() in wp-includes\/media.php *\/\n\t\t<\/style>\n\t\t<div id='gallery-2' class='gallery galleryid-277 gallery-columns-3 gallery-size-thumbnail'><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/11\/wp_sitemeta.png'><img decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/11\/wp_sitemeta-150x150.png\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-2-289\" \/><\/a>\n\t\t\t<\/dt>\n\t\t\t\t<dd class='wp-caption-text gallery-caption' id='gallery-2-289'>\n\t\t\t\twp_sitemeta\n\t\t\t\t<\/dd><\/dl><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/11\/wp_blogs.png'><img decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/11\/wp_blogs-150x150.png\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-2-287\" \/><\/a>\n\t\t\t<\/dt>\n\t\t\t\t<dd class='wp-caption-text gallery-caption' id='gallery-2-287'>\n\t\t\t\twp_blogs\n\t\t\t\t<\/dd><\/dl>\n\t\t\t<br style='clear: both' \/>\n\t\t<\/div>\n\n<p>You can now navigate to the new subdomain, with the contents of the former primary domain.<\/p>\n<p>But be careful, don\u2019t try to load the primary URL right now, as it has no content.<\/p>\n<h3>The current multisite domain:<\/h3>\n<p>The first thing you need to know about the subdomain, that is supposed to become the primary domain, is its ID. You can find it, by navigating to Network Admin \u2014&gt; Sites and hover over the right sites name. In the link you should see at your lower left corner in the end, it will say ID=# (# being the number of the ID). In my case, it is the number 12.<\/p>\n<p>Each subsite also has a set of database tables, that corresponds to this id. You will need to find it in wp_blogs and its wp_#_options table.<\/p>\n<table width=\"899\">\n<tbody>\n<tr>\n<td><strong>Database Table<\/strong><\/td>\n<td><strong>Values to change<\/strong><\/td>\n<\/tr>\n<tr>\n<td>wp_blogs<\/td>\n<td>\n<ul>\n<li>change the <strong>paths<\/strong> of the new domain to the primary path<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>wp_#<\/td>\n<td>\n<ul>\n<li>change subdomains <strong>siteurl<\/strong> to the primary url<\/li>\n<li>change subdomains <strong>home<\/strong> url to the primary url (this might be on page 2)<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\n\t\t<style type=\"text\/css\">\n\t\t\t#gallery-3 {\n\t\t\t\tmargin: auto;\n\t\t\t}\n\t\t\t#gallery-3 .gallery-item {\n\t\t\t\tfloat: left;\n\t\t\t\tmargin-top: 10px;\n\t\t\t\ttext-align: center;\n\t\t\t\twidth: 33%;\n\t\t\t}\n\t\t\t#gallery-3 img {\n\t\t\t\tborder: 2px solid #cfcfcf;\n\t\t\t}\n\t\t\t#gallery-3 .gallery-caption {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\t\t\t\/* see gallery_shortcode() in wp-includes\/media.php *\/\n\t\t<\/style>\n\t\t<div id='gallery-3' class='gallery galleryid-277 gallery-columns-3 gallery-size-thumbnail'><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/annaschneider.me\/blog\/wp_blogs\/'><img decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/11\/wp_blogs-150x150.png\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-3-287\" \/><\/a>\n\t\t\t<\/dt>\n\t\t\t\t<dd class='wp-caption-text gallery-caption' id='gallery-3-287'>\n\t\t\t\twp_blogs\n\t\t\t\t<\/dd><\/dl><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/annaschneider.me\/blog\/wp_12_options\/'><img decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/11\/wp_12_options-150x150.png\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-3-286\" \/><\/a>\n\t\t\t<\/dt>\n\t\t\t\t<dd class='wp-caption-text gallery-caption' id='gallery-3-286'>\n\t\t\t\twp_#_options siteurl\n\t\t\t\t<\/dd><\/dl><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/annaschneider.me\/blog\/wp_12_options2\/'><img decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/11\/wp_12_options2-150x150.png\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-3-285\" \/><\/a>\n\t\t\t<\/dt>\n\t\t\t\t<dd class='wp-caption-text gallery-caption' id='gallery-3-285'>\n\t\t\t\twp_#_options home\n\t\t\t\t<\/dd><\/dl><br style=\"clear: both\" \/>\n\t\t<\/div>\n\n<h3>Adapt the wp_config file<\/h3>\n<p>Make sure, to comment out any predefined URLs in the wp-config.php file. These could be:<\/p>\n<pre>define( 'WP_HOME', 'http:\/\/example.com' );\n\ndefine( 'WP_SITEURL', 'http:\/\/example.com' );<\/pre>\n<p>After that, you have to manually tell your server, which is the main Blog-ID to use for the primary domain in your multisite settings.<\/p>\n<pre>define('MULTISITE', true);\n\ndefine('SUBDOMAIN_INSTALL', false);\n\ndefine('DOMAIN_CURRENT_SITE', 'wp4e.de');\n\ndefine('PATH_CURRENT_SITE', '\/');\n\ndefine('SITE_ID_CURRENT_SITE', 1);\n\ndefine('BLOG_ID_CURRENT_SITE', 12);<\/pre>\n<p>In the line BLOG_ID_CURRENT_SITE change the number to the Blog-ID of your new primary domain. For me, that would be again the number 12.<\/p>\n<p>Now, you can go back to your site, and when loading the primary url, you should find your former subdomain here.<\/p>\n<h2>Changing the Primary Site in your Multisite Settings<\/h2>\n<p>When logged in to your new primary domain, you can navigate to Dashboard \u2014&gt; My Sites.<\/p>\n<p>In the first line, you can define the Primary Site of your Multisite. Change it to the current primary site.<\/p>\n<div id=\"attachment_284\" style=\"width: 650px\" class=\"wp-caption alignnone\"><img decoding=\"async\" aria-describedby=\"caption-attachment-284\" class=\"wp-image-284 size-simplyread-slider-image\" src=\"https:\/\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/11\/primary-site-1280x354.png\" alt=\"primary-site\" width=\"640\" height=\"177\" \/><p id=\"caption-attachment-284\" class=\"wp-caption-text\">Change Primary Site<\/p><\/div>\n<h2>Replace links in your new domains<\/h2>\n<p>To make sure, all URLs in every setting were changed, I recommend using the <a href=\"https:\/\/de.wordpress.org\/plugins\/velvet-blues-update-urls\/\">Velvet Blues Update URLs<\/a> Plugin and to do a Search and Replace. It is compatible with Multisite and you can go subsite by subsite. After activation, navigate to Tools \u2014&gt; Update URLs on the new subsite and replace all links with the old url to the new one. Also navigate to Update URLs in on the new primary domain and replace all links with the old path the primary domain one.<\/p>\n<div id=\"attachment_290\" style=\"width: 650px\" class=\"wp-caption alignnone\"><img decoding=\"async\" aria-describedby=\"caption-attachment-290\" class=\"wp-image-290 size-simplyread-slider-image\" src=\"https:\/\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/11\/Bildschirmfoto-2016-11-28-um-16.37.48-1280x500.png\" alt=\"Search and Replace Links\" width=\"640\" height=\"250\" \/><p id=\"caption-attachment-290\" class=\"wp-caption-text\">Search and Replace Links<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Working with Multisite in WordPress has many advantages. You can easily manage and create similar websites, while they still act as separate sites for visitors. While you can easily change subdomain directories from one to another, replacing the main domain with a subdirectories content and vice versa is a different topic. It happened to me [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":298,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","jetpack_post_was_ever_published":false,"footnotes":""},"categories":[3,9],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to change a multisite subdirectory to the primary domain - Anna Schneider<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/annaschneider.me\/blog\/how-to-change-a-multisite-subdirectory-to-the-primary-domain\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to change a multisite subdirectory to the primary domain - Anna Schneider\" \/>\n<meta property=\"og:description\" content=\"Working with Multisite in WordPress has many advantages. You can easily manage and create similar websites, while they still act as separate sites for visitors. While you can easily change subdomain directories from one to another, replacing the main domain with a subdirectories content and vice versa is a different topic. It happened to me [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/annaschneider.me\/blog\/how-to-change-a-multisite-subdirectory-to-the-primary-domain\/\" \/>\n<meta property=\"og:site_name\" content=\"Anna Schneider\" \/>\n<meta property=\"article:published_time\" content=\"2016-11-28T17:49:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-01-11T08:52:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/11\/changing_multisite_mainsite-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1756\" \/>\n\t<meta property=\"og:image:height\" content=\"718\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"anna\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"anna\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/annaschneider.me\/blog\/how-to-change-a-multisite-subdirectory-to-the-primary-domain\/\",\"url\":\"https:\/\/annaschneider.me\/blog\/how-to-change-a-multisite-subdirectory-to-the-primary-domain\/\",\"name\":\"How to change a multisite subdirectory to the primary domain - Anna Schneider\",\"isPartOf\":{\"@id\":\"https:\/\/annaschneider.me\/blog\/#website\"},\"datePublished\":\"2016-11-28T17:49:29+00:00\",\"dateModified\":\"2018-01-11T08:52:30+00:00\",\"author\":{\"@id\":\"https:\/\/annaschneider.me\/blog\/#\/schema\/person\/aed03681a2dc960294c5442477a37844\"},\"breadcrumb\":{\"@id\":\"https:\/\/annaschneider.me\/blog\/how-to-change-a-multisite-subdirectory-to-the-primary-domain\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/annaschneider.me\/blog\/how-to-change-a-multisite-subdirectory-to-the-primary-domain\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/annaschneider.me\/blog\/how-to-change-a-multisite-subdirectory-to-the-primary-domain\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/annaschneider.me\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to change a multisite subdirectory to the primary domain\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/annaschneider.me\/blog\/#website\",\"url\":\"https:\/\/annaschneider.me\/blog\/\",\"name\":\"Anna Schneider\",\"description\":\"Front-End Developer\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/annaschneider.me\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/annaschneider.me\/blog\/#\/schema\/person\/aed03681a2dc960294c5442477a37844\",\"name\":\"anna\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/annaschneider.me\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6c797411dcaa0edbe0f7d081dd142432?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6c797411dcaa0edbe0f7d081dd142432?s=96&d=mm&r=g\",\"caption\":\"anna\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to change a multisite subdirectory to the primary domain - Anna Schneider","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:\/\/annaschneider.me\/blog\/how-to-change-a-multisite-subdirectory-to-the-primary-domain\/","og_locale":"en_US","og_type":"article","og_title":"How to change a multisite subdirectory to the primary domain - Anna Schneider","og_description":"Working with Multisite in WordPress has many advantages. You can easily manage and create similar websites, while they still act as separate sites for visitors. While you can easily change subdomain directories from one to another, replacing the main domain with a subdirectories content and vice versa is a different topic. It happened to me [&hellip;]","og_url":"https:\/\/annaschneider.me\/blog\/how-to-change-a-multisite-subdirectory-to-the-primary-domain\/","og_site_name":"Anna Schneider","article_published_time":"2016-11-28T17:49:29+00:00","article_modified_time":"2018-01-11T08:52:30+00:00","og_image":[{"width":1756,"height":718,"url":"https:\/\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/11\/changing_multisite_mainsite-1.png","type":"image\/png"}],"author":"anna","twitter_card":"summary_large_image","twitter_misc":{"Written by":"anna","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/annaschneider.me\/blog\/how-to-change-a-multisite-subdirectory-to-the-primary-domain\/","url":"https:\/\/annaschneider.me\/blog\/how-to-change-a-multisite-subdirectory-to-the-primary-domain\/","name":"How to change a multisite subdirectory to the primary domain - Anna Schneider","isPartOf":{"@id":"https:\/\/annaschneider.me\/blog\/#website"},"datePublished":"2016-11-28T17:49:29+00:00","dateModified":"2018-01-11T08:52:30+00:00","author":{"@id":"https:\/\/annaschneider.me\/blog\/#\/schema\/person\/aed03681a2dc960294c5442477a37844"},"breadcrumb":{"@id":"https:\/\/annaschneider.me\/blog\/how-to-change-a-multisite-subdirectory-to-the-primary-domain\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/annaschneider.me\/blog\/how-to-change-a-multisite-subdirectory-to-the-primary-domain\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/annaschneider.me\/blog\/how-to-change-a-multisite-subdirectory-to-the-primary-domain\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/annaschneider.me\/blog\/"},{"@type":"ListItem","position":2,"name":"How to change a multisite subdirectory to the primary domain"}]},{"@type":"WebSite","@id":"https:\/\/annaschneider.me\/blog\/#website","url":"https:\/\/annaschneider.me\/blog\/","name":"Anna Schneider","description":"Front-End Developer","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/annaschneider.me\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/annaschneider.me\/blog\/#\/schema\/person\/aed03681a2dc960294c5442477a37844","name":"anna","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/annaschneider.me\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6c797411dcaa0edbe0f7d081dd142432?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6c797411dcaa0edbe0f7d081dd142432?s=96&d=mm&r=g","caption":"anna"}}]}},"jetpack_featured_media_url":"https:\/\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/11\/changing_multisite_mainsite-1.png","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9x5Dx-4t","jetpack-related-posts":[{"id":356,"url":"https:\/\/annaschneider.me\/blog\/update-breaks-wordpress-site\/","url_meta":{"origin":277,"position":0},"title":"What to do if an update breaks your WordPress site","author":"anna","date":"April 28, 2017","format":false,"excerpt":"Updates are important, if not to say mandatory. They make your site more secure, more compatible, more functional and durable. Nevertheless, they can also cause sites to break, usually caused by numerous different kinds of conflicts between old and new code If things break in your live website or WooCommerce\u2026","rel":"","context":"In &quot;Technical Issues&quot;","block_context":{"text":"Technical Issues","link":"https:\/\/annaschneider.me\/blog\/technicalissues\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/annaschneider.me\/blog\/wp-content\/uploads\/2017\/04\/Update-breakes-site.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/annaschneider.me\/blog\/wp-content\/uploads\/2017\/04\/Update-breakes-site.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/annaschneider.me\/blog\/wp-content\/uploads\/2017\/04\/Update-breakes-site.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/annaschneider.me\/blog\/wp-content\/uploads\/2017\/04\/Update-breakes-site.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/annaschneider.me\/blog\/wp-content\/uploads\/2017\/04\/Update-breakes-site.png?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/annaschneider.me\/blog\/wp-content\/uploads\/2017\/04\/Update-breakes-site.png?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":147,"url":"https:\/\/annaschneider.me\/blog\/why-i-love-working-with-woothemes-canvas\/","url_meta":{"origin":277,"position":1},"title":"Why I love working with WooThemes Canvas","author":"anna","date":"March 18, 2016","format":false,"excerpt":"The Canvas theme Canvas describes itself as: \"a\u00a0clean, minimalistic and beautiful WordPress theme framework or so called starter theme that you can use as-is or customize it via Theme Options. Canvas Theme Options provides with over 100 different values you can tweak to change font size, color, background, widget styling,\u2026","rel":"","context":"In &quot;Customization&quot;","block_context":{"text":"Customization","link":"https:\/\/annaschneider.me\/blog\/customization\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/03\/Canvas.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/03\/Canvas.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/03\/Canvas.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/03\/Canvas.jpg?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/03\/Canvas.jpg?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/03\/Canvas.jpg?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":180,"url":"https:\/\/annaschneider.me\/blog\/removing-the-storefront-header-padding\/","url_meta":{"origin":277,"position":2},"title":"Removing the Storefront header padding","author":"anna","date":"May 12, 2016","format":false,"excerpt":"Storefront can be a great theme, but it comes with some hard-coded features, I personally don't like. One of them is the huge padding around the header. I like headers to be rather slim and less \"in your face\". The setup used in this post is the Storefront Theme and\u2026","rel":"","context":"In &quot;Customization&quot;","block_context":{"text":"Customization","link":"https:\/\/annaschneider.me\/blog\/customization\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/05\/Removing-Storefront-Header-Padding-1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/05\/Removing-Storefront-Header-Padding-1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/05\/Removing-Storefront-Header-Padding-1.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/05\/Removing-Storefront-Header-Padding-1.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":48,"url":"https:\/\/annaschneider.me\/blog\/different-ways-for-multi-language-websites\/","url_meta":{"origin":277,"position":3},"title":"Different possibilities for multi-language websites","author":"anna","date":"February 22, 2016","format":false,"excerpt":"One question customers often have, concerns\u00a0multilingual pages. As WordPress was developed as a blog system, a standard option for multilingual content is not included. One either has to\u00a0manually create different\u00a0versions or use a WordPress plugin. Basically,\u00a0there are three different possibilities to solve the case. They all have their pros and\u2026","rel":"","context":"In &quot;Multilanguage&quot;","block_context":{"text":"Multilanguage","link":"https:\/\/annaschneider.me\/blog\/multilanguage\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/02\/photodune-3027894-flags-m.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/02\/photodune-3027894-flags-m.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/02\/photodune-3027894-flags-m.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/02\/photodune-3027894-flags-m.jpg?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/02\/photodune-3027894-flags-m.jpg?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/02\/photodune-3027894-flags-m.jpg?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":52,"url":"https:\/\/annaschneider.me\/blog\/creating-a-second-floating-menu-on-specific-pages\/","url_meta":{"origin":277,"position":4},"title":"Creating a second floating menu on specific pages","author":"anna","date":"February 23, 2016","format":false,"excerpt":"Just now, I had a customer who with a rather rare wish: On her website, there are parts with many submenu items. To facilitate the user experience, these parts should always show a second menu giving constantly\u00a0all the submenu item. The site is running with the Pootlepress Canvas child theme.\u2026","rel":"","context":"In &quot;Technical Issues&quot;","block_context":{"text":"Technical Issues","link":"https:\/\/annaschneider.me\/blog\/technicalissues\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/02\/Floating-Menu-CSS.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/02\/Floating-Menu-CSS.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/02\/Floating-Menu-CSS.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/02\/Floating-Menu-CSS.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/02\/Floating-Menu-CSS.png?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/02\/Floating-Menu-CSS.png?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":216,"url":"https:\/\/annaschneider.me\/blog\/hide-the-price-range-for-woocommerce-variable-products\/","url_meta":{"origin":277,"position":5},"title":"How to hide the Price Range for WooCommerce Variable Products","author":"anna","date":"November 14, 2016","format":false,"excerpt":"If you sell a variable product on WooCommerce, it\u2019s quite likely that different options come with different prices. In your store, customers can then choose a certain variation and will be charged the according price. When selling many different options, in some cases store owners don\u2019t want their customers to\u2026","rel":"","context":"In &quot;WooCommerce&quot;","block_context":{"text":"WooCommerce","link":"https:\/\/annaschneider.me\/blog\/woocommerce\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/11\/Bildschirmfoto-2016-11-28-um-18.10.59-1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/11\/Bildschirmfoto-2016-11-28-um-18.10.59-1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/11\/Bildschirmfoto-2016-11-28-um-18.10.59-1.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/11\/Bildschirmfoto-2016-11-28-um-18.10.59-1.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/11\/Bildschirmfoto-2016-11-28-um-18.10.59-1.png?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/annaschneider.me\/blog\/wp-content\/uploads\/2016\/11\/Bildschirmfoto-2016-11-28-um-18.10.59-1.png?resize=1400%2C800&ssl=1 4x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/annaschneider.me\/blog\/wp-json\/wp\/v2\/posts\/277"}],"collection":[{"href":"https:\/\/annaschneider.me\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/annaschneider.me\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/annaschneider.me\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/annaschneider.me\/blog\/wp-json\/wp\/v2\/comments?post=277"}],"version-history":[{"count":1,"href":"https:\/\/annaschneider.me\/blog\/wp-json\/wp\/v2\/posts\/277\/revisions"}],"predecessor-version":[{"id":47975,"href":"https:\/\/annaschneider.me\/blog\/wp-json\/wp\/v2\/posts\/277\/revisions\/47975"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/annaschneider.me\/blog\/wp-json\/wp\/v2\/media\/298"}],"wp:attachment":[{"href":"https:\/\/annaschneider.me\/blog\/wp-json\/wp\/v2\/media?parent=277"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/annaschneider.me\/blog\/wp-json\/wp\/v2\/categories?post=277"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/annaschneider.me\/blog\/wp-json\/wp\/v2\/tags?post=277"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}