{"id":224,"date":"2014-03-21T18:49:03","date_gmt":"2014-03-21T17:49:03","guid":{"rendered":"https:\/\/www.vagnretur.com\/?p=224"},"modified":"2014-03-21T18:49:03","modified_gmt":"2014-03-21T17:49:03","slug":"how-to-move-a-wordpress-installation-easily","status":"publish","type":"post","link":"https:\/\/vagnretur.com\/?p=224","title":{"rendered":"How to move a wordpress installation easily"},"content":{"rendered":"<p>In order to move a WordPress installation, move all web files to the new location and run the following queries in the database:<\/p>\n<pre>UPDATE wp_options SET option_value = replace(option_value, 'http:\/\/www.old-domain.com', 'http:\/\/www.new-domain.com') WHERE option_name = 'home' OR option_name = 'siteurl';\n\nUPDATE wp_posts SET guid = replace(guid, 'http:\/\/www.old-domain.com', 'http:\/\/www.new-domain.com');\n\nUPDATE wp_posts SET post_content = replace(post_content, 'http:\/\/www.old-domain.com', 'http:\/\/www.new-domain.com');<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>In order to move a WordPress installation, move all web files to the new location and run the following queries in the database: UPDATE wp_options SET option_value = replace(option_value, &#8216;http:\/\/www.old-domain.com&#8217;, &#8216;http:\/\/www.new-domain.com&#8217;) WHERE option_name = &#8216;home&#8217; OR option_name = &#8216;siteurl&#8217;; UPDATE wp_posts SET guid = replace(guid, &#8216;http:\/\/www.old-domain.com&#8217;, &#8216;http:\/\/www.new-domain.com&#8217;); UPDATE wp_posts SET post_content = replace(post_content, &#8216;http:\/\/www.old-domain.com&#8217;, &#8216;http:\/\/www.new-domain.com&#8217;);<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[10,11,12,13],"class_list":["post-224","post","type-post","status-publish","format-standard","hentry","category-linux","tag-move","tag-mysql","tag-sql","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/vagnretur.com\/index.php?rest_route=\/wp\/v2\/posts\/224","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vagnretur.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vagnretur.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vagnretur.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/vagnretur.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=224"}],"version-history":[{"count":0,"href":"https:\/\/vagnretur.com\/index.php?rest_route=\/wp\/v2\/posts\/224\/revisions"}],"wp:attachment":[{"href":"https:\/\/vagnretur.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=224"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vagnretur.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=224"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vagnretur.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}