{"id":195,"date":"2010-02-16T17:43:15","date_gmt":"2010-02-17T01:43:15","guid":{"rendered":"http:\/\/www.ait-pro.com\/aitpro-blog\/?p=195"},"modified":"2012-10-06T10:17:04","modified_gmt":"2012-10-06T17:17:04","slug":"wordpress-website-migration-from-old-website-host-to-a-new-website-host","status":"publish","type":"post","link":"https:\/\/www.ait-pro.com\/aitpro-blog\/195\/misc-projects\/wordpress-tips-tricks-fixes\/wordpress-website-migration-from-old-website-host-to-a-new-website-host\/","title":{"rendered":"WordPress Website Migration from old website host to a new website host"},"content":{"rendered":"<h2>Moving &#8211; Migrating WordPress<\/h2>\n<p><strong>This information is intended to be\u00a0supplemental to the official guide to Moving WordPress on the WordPress.org\u00a0 website.<\/strong><\/p>\n<p>In my professional opinion this is the best way to do it so that you do not loose data or have complications. Also if you can, you should not do a domain name transfer until the new site is working perfectly. You may not be able to do this depending on your situation, but this would allow you to have your existing site as a reference until your new site is working perfectly.<\/p>\n<p>Install the WP-DBManager plugin &#8211; make a backup of your current website DB on DreamHost. <br \/>\nDownload that DB backup to your computer DB backups are stored in this folder \/wp-content\/backup-db <br \/>\nInstall a clean installation of WordPress on GoDaddy <br \/>\nInstall the WP-DBManager plugin on your GoDaddy WordPress site <br \/>\nUpload your backed up DB to your new WordPress site to the \/wp-content\/backup-db folder <br \/>\nClick on the Manage Backup DB option under WP-DBManager Click Restore to copy your old DB to your new DB<\/p>\n<p>You may need to do some nick knacks stuff to get everything perfect, but by restoring your old DB to your new DB you are effectively transferring all of your old site to your new site &#8211; settings, posts, data, etc etc.<\/p>\n<p>You will need to manually download your image files. Uploaded images are not stored in the SQL DB. They are stored in the \/wp-content\/uploads folder by default. Then you will need to upload your images to your new WordPress website&#8217;s \/wp-content\/uploads folder. The image linking information for your images is contained in the DB so the links in your posts to those images will be restored when you do the DB restore. And finally you will either want to download and upload all of your plugins or reinstall them on the new site. And download and upload your Theme or reinstall it. Good luck.<\/p>\n<p><strong>Preparation <\/strong><\/p>\n<p><strong>Make a checklist of all your WordPress core code customizations you\u2019ve done outside of your Themes folder (root, wp-content, wp-includes, wp-admin)<\/strong><\/p>\n<p><strong>Use the same WordPress username and password from your old WordPress website when you are installing the new WordPress installation<\/strong><\/p>\n<p><strong>Get the full root path for your website from your new web host control panel.\u00a0 You will need this path later when you are configuring WP-DBManager. \u00a0It will look something like these: <\/strong><\/p>\n<p><strong>\/home\/content\/14\/89357289\/html\/ or something like this \/vbt\/w004\/d33\/s38\/b45698nn\/www\/<\/strong><\/p>\n<p><strong>Your webhost path will be different and may not look like either of these example website host root paths.<\/strong>\u00a0<\/p>\n<p>On your new website host create the folder for your website and install WordPress in that folder.\u00a0 If you just have one website you can just install WordPress in the root folder. \u00a0You could always just copy your entire WordPress site from your old website host to your new website host, but this method means that you will have to manually create your SQL DB for Wordpess on your new host.\u00a0 When installing WordPress on your new website host you not only get an SQL DB created for you, but this also means you will not need to copy the core WordPress files and folders over to the new host.\u00a0<\/p>\n<p>If you only have a single WordPress website to migrate to your new website host you should probably install the website at the root.\u00a0 If you have multiple websites on a single host account you should use this naming convention for your folders for all your websites.\u00a0 This is the best naming convention anyway for all the right reasons, but primarily for DNS.\u00a0 You could add the www prefix to the folder name, but I do not recommend it.<\/p>\n<p>A folder name example\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0= mywebsite1.com<\/p>\n<p>Another folder name example = mywebsite2.com<\/p>\n<p>Create an FTP account on your new host so you can upload your downloaded WordPress files from your old web host.<\/p>\n<p><strong>WordPress Preparation on your old web host server<\/strong><\/p>\n<p>If you have a WordPress cache plugin disable it and delete the cached files. This is not necessary, but probably a good idea just in case there is a problem.<\/p>\n<p>I recommend that you install the WP-DBManager WordPress plugin if you do not have it installed already. It will make your whole WordPress migration easy, fast simple. If you have another DB backup plugin then do the similar steps for your plugin to backup your SQL DB.<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 DB backups are stored in \/wp-content\/backup-db.\u00a0 You will be uploading the backups to the new host later.\u00a0<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Download your latest backup or as many backups as you want to keep to your local computer.<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 You can also export your old WP SQL DB from MySQL PHPadmin just in case.\u00a0 I have had problems with importing SQL DB export .sql files from one host to another via PHPmyadmin.\u00a0 When you restore a database backup with WP DBManager this should correct any problems with your SQL DB..<\/p>\n<p><strong>Downloading your WordPress files from your old website host<\/strong><\/p>\n<p>Download all of your plugin folders to your computer.\u00a0 You may have to reconfigure some of them with the new web host server path.\u00a0 That is why you hopefully made a checklist first.<\/p>\n<p>Download your WordPress Theme folder \u2013 if you want more themes or all of the current themes you have installed then you can download them too.<\/p>\n<p>Download any Google, Yahoo and Bing sitemap verification files in the root.<\/p>\n<p>You do not need to download your XML sitemap \u2013 you will be rebuilding it on your new host. Download your uploaded image and other files in your WordPress uploads folder \u2013 \/wp-content\/uploads<\/p>\n<p><strong>Uploading your WordPress files to your new website host<\/strong><\/p>\n<p>Upload your entire plugin folder<\/p>\n<p>Upload your DB backups<\/p>\n<p>Upload your Theme<\/p>\n<p>Upload Google, Yahoo and Bing sitemap verifications files to the root folder.<\/p>\n<p><strong>DNS change over<\/strong> this is only for websites that are being moved from one paid web host to another paid web host. \u00a0If you had a free host or WordPress.com as your host you don\u2019t have any DNS settings to change.<\/p>\n<p>Change your DNS information on your old website host or registrar to point to your new hosts name servers.\u00a0 The change sometimes occurs in minutes and sometimes takes longer, but it is usually under 30 minutes.\u00a0 Do Ping commands or close and reopen your browser to see exactly when your site is viewable on your new host.\u00a0 You will see the default or classic WordPress theme when the DNS change has occurred \u2013 don\u2019t panic that\u2019s what you are supposed to see until you restore you WordPress SQL DB.<\/p>\n<p>Reactivate WP-DBManager first and restore your last backed up database.\u00a0 Click your Database panel (it is located in your left panels at the bottom), click Manage Backup DB, select the backup you want to restore, click Restore.<\/p>\n<p>This updates the SQL DB on your new host with your latest backup from your old host SQL DB.\u00a0 You will need to add your old .htaccess file to the backup-db folder or you will see this error message:\u00a0 \u201cYour backup folder MIGHT be visible to the public\u201d.<\/p>\n<p><strong>CAUTION:<\/strong>\u00a0<strong> the .htaccess used file for the WP-DBManager plugin is different than your root .httaccess file and is located\u00a0in this folder &gt;&gt;&gt; \u00a0\/backup-db folder\u00a0\u00a0.<\/strong><\/p>\n<p>This is what you should be in your WP-DBManager .htaccess file.<\/p>\n<p><code>&lt;Files ~ \".*\\..*\"&gt;<br \/>\norder allow,deny<br \/>\ndeny from all<br \/>\n&lt;\/Files&gt;<br \/>\n<\/code><\/p>\n<p><strong>Configure WP-DBManager WordPress Plugin<\/strong><\/p>\n<p>Under your Database Panel click on DB Options.\u00a0 You may get kicked out of your WordPress admin Dashboard.\u00a0 Log back into WordPress. If you logged back in successfully skip down to Back to configuring WP-DBManager.<\/p>\n<p>If you run into problems logging back in if you were using Theme My Login plugin.<\/p>\n<p>If you are using theme my login rename the Theme My Login plugin folder if you have problems logging into your WordPress website. \u00a0You will need to use the default WordPress login for now.\u00a0 http:\/\/www.yourdomainname.com\/wp-admin\/admin.php\u00a0 use the password reset to send yourself a new password or you can change it in your new WordPress SQL DB if you want.<\/p>\n<p>This WP Login works only if you rename the TML plugin folder http:\/\/www.yourdomainname.com\/wp-login.php<\/p>\n<p>This link should now get you to your Dashboard http:\/\/www.yourdomainname.com\/wp-admin\/<\/p>\n<p><strong>Back to configuring WP-DBManager<\/strong><\/p>\n<p><strong>Click on DB Options under your Database Panel again<\/strong><\/p>\n<p><strong>For Path To mysqldump: just click the auto detect button<\/strong><\/p>\n<p><strong>For Path To mysql: just click the auto detect button<\/strong><\/p>\n<p><strong>For Path To Backup<\/strong><\/p>\n<p>You will need to correct the path for your backup location \u2013 you will see your old host website root folder path.\u00a0 You need to enter the new host server root path to your db-backup folder.\u00a0 This is just an example do not use this path:\u00a0 <strong>\/home\/content\/14\/89357289\/html\/wp-content\/backup-db.\u00a0 <\/strong>Click the Save button.\u00a0 Now to make sure everything is good click on your Dashboard panel button and then click back on Database sub panel.<\/p>\n<p>Click on your Plugins sub panel.\u00a0 If your plugins are not activated then activate all of them now.<\/p>\n<p>Check your website appearance \u2013 it should look exactly as it looked on your old host.<\/p>\n<p>You should be using a WordPress SEO plugin.\u00a0 Check that SEO plugin to make sure everything looks correct.<\/p>\n<p>You should also be using an XML Sitemap\u00a0 You will need to manually rebuild your XML sitemap.<\/p>\n<p><strong>Important!<\/strong>\u00a0 If you have multiple WordPress installations in separate folders be careful that your .htaccess files have the correct information.\u00a0 If you use\u00a0custom Permalinks (every WordPress website should be using custom permalinks) then generate an .htaccess file using update and then add any additional rules you want.\u00a0 The WordPress default .htaccess rules are shown below.<\/p>\n<p>This is what an .htaccess file will look like if your WordPress installation is in the root folder.\u00a0 Notice the RewriteBase is the root \/\u00a0 and the RewriteRule is \/index.php<\/p>\n<p><code># BEGIN WordPress<br \/>\nRewriteEngine On<br \/>\nRewriteBase \/<br \/>\nRewriteCond %{REQUEST_FILENAME} !-f<br \/>\nRewriteCond %{REQUEST_FILENAME} !-d<br \/>\nRewriteRule . \/index.php [L]<br \/>\n# END WordPress<\/code><\/p>\n<p>This is what an .htaccess file will look like if your WordPress installation is in a folder called myblog. Notice the RewriteBase is the folder \/myblog\/ and the RewriteRule is \/myblog\/index.php<\/p>\n<p><code># BEGIN WordPress<br \/>\nRewriteEngine On<br \/>\nRewriteBase \/myblog\/<br \/>\nRewriteCond %{REQUEST_FILENAME} !-f<br \/>\nRewriteCond %{REQUEST_FILENAME} !-d\u00a0<br \/>\nRewriteRule . \/myblog\/index.php [L]<br \/>\n# END WordPress<\/code><\/p>\n<p><strong>That\u2019s it your all done.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Moving &#8211; Migrating WordPress This information is intended to be\u00a0supplemental to the official guide to Moving WordPress on the WordPress.org\u00a0 website. In my professional opinion this is the best way to do it so that you do not loose data or have complications. Also if you can, you should not do a domain name transfer [&hellip;]<\/p>\n","protected":false},"author":167,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[13],"tags":[24,23],"class_list":["post-195","post","type-post","status-publish","format-standard","hentry","category-wordpress-tips-tricks-fixes","tag-move-wordpress-website-to-new-web-host","tag-wordpress-migration-to-new-web-host"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ait-pro.com\/aitpro-blog\/wp-json\/wp\/v2\/posts\/195","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ait-pro.com\/aitpro-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ait-pro.com\/aitpro-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ait-pro.com\/aitpro-blog\/wp-json\/wp\/v2\/users\/167"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ait-pro.com\/aitpro-blog\/wp-json\/wp\/v2\/comments?post=195"}],"version-history":[{"count":0,"href":"https:\/\/www.ait-pro.com\/aitpro-blog\/wp-json\/wp\/v2\/posts\/195\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ait-pro.com\/aitpro-blog\/wp-json\/wp\/v2\/media?parent=195"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ait-pro.com\/aitpro-blog\/wp-json\/wp\/v2\/categories?post=195"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ait-pro.com\/aitpro-blog\/wp-json\/wp\/v2\/tags?post=195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}