{"id":773,"date":"2009-02-20T18:37:43","date_gmt":"2009-02-20T17:37:43","guid":{"rendered":"http:\/\/www.tekstadventure.nl\/branko\/blog\/2009\/02\/moving-drupal"},"modified":"2009-02-20T18:37:43","modified_gmt":"2009-02-20T17:37:43","slug":"moving-drupal","status":"publish","type":"post","link":"https:\/\/www.tekstadventure.nl\/branko\/blog\/2009\/02\/moving-drupal","title":{"rendered":"Moving Drupal"},"content":{"rendered":"<p>Today I had to move a Drupal installation from one domain (<em>dev.example.com<\/em>) to another (<em>www.example.com<\/em>). Most of my time was spent in waiting for back-ups to finish, but there was one other problem that took a good half hour to solve: one page (<em>www.example.com\/portfolio\/<\/em>) would give 403 errors, even though the page existed (as a URL alias). What had happened is that until today the <em>www<\/em> address had contained the old site, and the customer did not want me to delete its files, so I just dumped Drupal in the same directory. Turned out that there was a directory &#8220;portfolio&#8221; in there that conflicted with one of the new site&#8217;s so-called &#8216;URL aliases&#8217;.<\/p>\n<p>So here are <strong>a few tips for moving a Drupal install across domains<\/strong>:<\/p>\n<ul>\n<li>empty all caches before you back-up the database<\/li>\n<li>after moving the site, change the base_url setting in the site settings file (sites\/default\/settings.php)<\/li>\n<li>if you&#8217;re using MS Windows, Xenu Linksleuth is a good tool to check if any of the old URL&#8217;s are still lingering on the user side of the web site<\/li>\n<li>if you&#8217;re overwriting an exisiting site, make sure the old paths in your new Drupal root do not conflict with the path aliases of the new site.<\/li>\n<\/ul>\n<p>Re: the caches: my database contained 66 MB of material, of which 61 MB were caches.<\/p>\n<p>The above are additional tips, and most definitely not the entire story of how to move a Drupal site. For that you use either common sense or the search function at Drupal.org.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I had to move a Drupal installation from one domain (dev.example.com) to another (www.example.com). Most of my time was spent in waiting for back-ups to finish, but there was one other problem that took a good half hour to solve: one page (www.example.com\/portfolio\/) would give 403 errors, even though the page existed (as a &#8230; <a href=\"https:\/\/www.tekstadventure.nl\/branko\/blog\/2009\/02\/moving-drupal\" class=\"excerpt-read-more read-more\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-773","post","type-post","status-publish","format-standard","hentry","category-web-design-usability"],"_links":{"self":[{"href":"https:\/\/www.tekstadventure.nl\/branko\/blog\/wp-json\/wp\/v2\/posts\/773","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tekstadventure.nl\/branko\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tekstadventure.nl\/branko\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tekstadventure.nl\/branko\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tekstadventure.nl\/branko\/blog\/wp-json\/wp\/v2\/comments?post=773"}],"version-history":[{"count":0,"href":"https:\/\/www.tekstadventure.nl\/branko\/blog\/wp-json\/wp\/v2\/posts\/773\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tekstadventure.nl\/branko\/blog\/wp-json\/wp\/v2\/media?parent=773"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tekstadventure.nl\/branko\/blog\/wp-json\/wp\/v2\/categories?post=773"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tekstadventure.nl\/branko\/blog\/wp-json\/wp\/v2\/tags?post=773"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}