{"id":1764,"date":"2009-09-13T22:04:18","date_gmt":"2009-09-13T16:34:18","guid":{"rendered":"http:\/\/naveen.bachwani.com\/blog\/?p=909"},"modified":"2009-09-13T22:04:18","modified_gmt":"2009-09-13T16:34:18","slug":"quick-guide-wordpress-migration","status":"publish","type":"post","link":"https:\/\/naveen.bachwani.com\/greymatter\/2009\/09\/quick-guide-wordpress-migration\/","title":{"rendered":"Quick Guide to WordPress migration"},"content":{"rendered":"<p>I&#8217;ve recently migrated multiple blogs from WordPress.com to my own domain+server (WordPress.org).\u00a0 In my research, I did not find much by way of how-to guides that could tackle some of the common problems one encounters in such a migration.\u00a0 Therefore, I thought it would be useful to share how you can go about it in a quick-and-easy manner.<\/p>\n<p>Before we tackle the migration process, if you are new to blogging and wondering what blogging platform to adopt, I wholeheartedly recommend WordPress.\u00a0 I have extensively used Blogger, Typepad, Squarespace and few others, and have yet to find a better, more robust solution to my blogging needs than WordPress.\u00a0 Since it is among the most popular blogging platforms on Earth, you also enjoy a lot of development support and plugins (for selft-hosted versions), all for free!\u00a0 If you&#8217;re not quite clear about the differences between WordPress.com and WordPress.org, read <a href=\"http:\/\/support.wordpress.com\/com-vs-org\/\" target=\"_blank\">this support page<\/a> or <a href=\"http:\/\/en.forums.wordpress.com\/topic\/please-read-me-first-before-posting\" target=\"_blank\">this one<\/a>, to know more.\u00a0 The short version is this:<\/p>\n<blockquote><p>WordPress.org is free blogging software. With WordPress.org, you can install themes and plugins, run advertisements, edit the database and even modify the PHP source code. Anyone can download the software for free but it must be installed on a web server before it will work. If you mismanage your web server, you can lose your entire blog.<\/p>\n<p>WordPress.com is different. You do not have to download software, pay for hosting or manage a web server. When you sign up for a WordPress.com blog, you will get a URL like &#8220;andy.wordpress.com&#8221;.\u00a0 What you can do on WordPress.com is blog for free.<\/p><\/blockquote>\n<p>Now, let&#8217;s get right down to it.\u00a0 Bear in mind that this is the quick-and-dirty guide, and not the\u00a0full-and-comprehensive one\u00a0involving PHP script codes and server-side modifications.<\/p>\n<p>You would assume that moving your blog from WordPress(.com) to WordPress(.org) should be completely straightforward and hassle-free.\u00a0 The truth is it&#8217;s mostly hassle-free and pretty straightforward, but there are a few things you should know.<\/p>\n<p><strong>1. Search engine rankings<\/strong> &#8211; If your WordPress.com blog has lived on the web for a while, it would have probably accumulated page-ranking currency thanks to Google et al.\u00a0 When you move, your blog&#8217;s domain name will change and your page-rankings will be reset to zero.\u00a0 (Note: This does not apply to those of you who have paid for &#8220;wordpress credits&#8221; on your wordpress.com blog, and already mapped your own domain name to your blog.)<\/p>\n<p><strong>2. Images<\/strong> &#8211; A lot of you run wordpress blogs with a number of image files included in your posts.\u00a0 The import\/export tool of WordPress now enables &#8220;Import with Attachments&#8221;, but this is not a feature I have much experience with.\u00a0 In my case, there were just a handful of blog posts that included image files, and I found it simpler to delete any references to images from my posts, after I&#8217;d migrated them to their new location.\u00a0 (I did this by opening up the exported XML file in Wordpad, doing a &#8220;find&#8221; on any code referring to &lt;img&gt;, and simply deleting those references.)<\/p>\n<p><strong>3. Posts, Pages and Comments<\/strong> &#8211; This is the juicy stuff that your blog is made of, and also includes the Categories, Tags and\u00a0Comments.\u00a0 WordPress-to-Wordpress migrations are done via its built-in Import\/Export tools, found under the Tools menu on your left panel.\u00a0 You login to your WordPress.com blog, click Tools\/Export, save the resulting XML file on your desktop.\u00a0 The\u00a0Tools\/Import\u00a0process is typically non-messy if you watch out for a few things before you\u00a0login to your new WordPress blog and import the XML file:<\/p>\n<p style=\"padding-left:30px\">a. There is an upper-limit of the filesize that can be &#8220;imported&#8221; into WordPress.\u00a0 It should suffice for most of you.\u00a0 My blog had more than 500 posts and comments, and I didn&#8217;t reach any where close to the limit.\u00a0 Anyway, stay within it and you should be fine.\u00a0 Exceed it and you may need help from your web hosting provider to find a way around it.<\/p>\n<p style=\"padding-left:30px\">b. You need to ensure that the Author or User Role defined in your old and new blogs states your name and nickname in the same way, else the Import\/Export process will create duplicate or mis-mapped entries.<\/p>\n<p style=\"padding-left:30px\">c. Permalink structure &#8211; This is the most important aspect of the migration to ensure any internal links and search-engine references are intact.\u00a0 Your WordPress.com blog follows a specified permalink structure to generate URLs for each posts.\u00a0 The default setting on your new WordPress blog may not match with this, and you will need to modify it in Settings\/Permalinks to ensure it matches your old permalink structure.\u00a0 This needs to be done <em>before <\/em>you import all your entries.\u00a0 Read <a href=\"http:\/\/codex.wordpress.org\/Using_Permalinks#Choosing_your_permalink_structure\" target=\"_blank\">this support page<\/a> for details.<\/p>\n<p style=\"padding-left:30px\">d. Modifying your XML file &#8211; After you &#8220;export&#8221; it from the old location and before your &#8220;import&#8221; it into the new one, there are some things you need to change in your XML file for smooth running.\u00a0 Open it up in Wordpad or any text editor of yoru choice, &#8220;find&#8221; all HTML references to your old domain (say, andy.wordpress.com) and &#8220;replace&#8221; it all to your new domain name (say, www.andygates.com).\u00a0 If your permalink structure is the same in both locations, every thing else should work, and all your links should point to the right posts.<\/p>\n<p>That&#8217;s it!\u00a0 Now, all that&#8217;s left to do is to import your modified XML file into your new WordPress.com blog, and see it in action.\u00a0 When you see it all nice and ready, you can use Google&#8217;s <em>AddURL<\/em> and <em>RemoveURL<\/em> features to update your search-engine listings, so that the old ones get removed and the new ones get indexed.<\/p>\n<p>The above process should also work, in principle, for all migrations to and from WordPress, where either the source or the destination blogging platform is <em>not <\/em>WordPress (with some limitations, of course).<\/p>\n<p>If you anticipate you will need help in installing WordPress on your new hosted server, choose a hosting provider with cPanel and Fantastico bundled.\u00a0 cPanel is the easiest &#8220;control panel&#8221; for server management out there, and Fantastico provides easy-to-use installation scripts for many popular softwares, including WordPress.<\/p>\n<p>For more help on WordPress.org, go to its <a href=\"http:\/\/wordpress.org\/support\/\" target=\"_blank\">support pages<\/a>.\u00a0 If you already run an old\u00a0self-hosted WordPress.org installation and are looking to upgrade, <a href=\"http:\/\/codex.wordpress.org\/Upgrading_WordPress_Extended\" target=\"_blank\">go here<\/a> for instructions.<\/p>\n<p>Happy blogging!<\/p>\n<p style=\"text-align:left\">\n<p style=\"text-align:left\"><em>Update:<br \/>\n<\/em><\/p>\n<p style=\"text-align:left\"><em>As of Sep 2012, I&#8217;ve moved both my blogs from my self-hosted platform (WordPress.org) back to WordPress.com. My primary motivator was reduced technical maintenance needed to run my sites, and also to reduce the spam I was getting in my comments. I also took the opportunity to move my photoblog from Pixelpost to WordPress.com, thanks to an excellent script by <a href=\"http:\/\/www.eleventwentysix.com\/pp2wp\/\" target=\"_blank\">ElevenTwentySix, <\/a>which needed just a few minor modifications to make it work its magic. Your mileage may vary.<br \/>\n<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve recently migrated multiple blogs from WordPress.com to my own domain+server (WordPress.org).\u00a0 In my research, I did not find much by way of how-to guides<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[1],"tags":[11],"class_list":["post-1764","post","type-post","status-publish","format-standard","hentry","category-blog","tag-technology"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/naveen.bachwani.com\/greymatter\/wp-json\/wp\/v2\/posts\/1764","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/naveen.bachwani.com\/greymatter\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/naveen.bachwani.com\/greymatter\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/naveen.bachwani.com\/greymatter\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/naveen.bachwani.com\/greymatter\/wp-json\/wp\/v2\/comments?post=1764"}],"version-history":[{"count":0,"href":"https:\/\/naveen.bachwani.com\/greymatter\/wp-json\/wp\/v2\/posts\/1764\/revisions"}],"wp:attachment":[{"href":"https:\/\/naveen.bachwani.com\/greymatter\/wp-json\/wp\/v2\/media?parent=1764"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/naveen.bachwani.com\/greymatter\/wp-json\/wp\/v2\/categories?post=1764"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/naveen.bachwani.com\/greymatter\/wp-json\/wp\/v2\/tags?post=1764"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}