Skip to main content

3 Problems After Moving WordPress Host and Their Solutions

Many WordPress users think a million times before shifting to a new web host, server or a new domain because of the fear of loosing their data, visitors or search rank. To some extent, their fear is genuine because a lot of problems may be caused after WordPress server migration which may eventually result into data loss, page load errors and even site rendering. In this post are three common problems which comes up after host migration and some effective ways to solve them.




Homepage opening but clicking any link gives a blank/404/error page


Problem?


Once you shift your blog, you can see your homepage and site admin area but when you click on any link on the homepage including posts, categories, tags etc, you get a blank page or a 404 not found error, or you get redirected to your hosting provider's page or any other similar problem occurs. This problem occurs when you are using pretty permalinks in your blog instead of WordPress' default (ugly) permalink structure.

Solution.



  1. Open your web server via FTP or any other file manager.

  2. Locate .htaccess file in the WordPress home directory. (If you don't have any such file you can skip step 2, 3 and 7).

  3. Download the file and delete it from your server.

  4. Now go to your WordPress dashboard and then go to "Permalinks" under the settings module.

  5. Set the permalinks structure to "default" (don't worry, this is temporary) and see your posts and other pages should start appearing again.

  6. Set the permalinks structure to whatever fits your blog.

  7. Upload the .htaccess file again to the same directory in the web server.

This should solve your problem and the links should start opening again.

Some of the links target your old URLs when you have changed the domain


Problem?


This generally happens when you shift your WordPress blog to a new domain. Your posts will open the URLs with the old domain but the homepage opens fine with the new domain. This problem occurs if you do not change your domain in your database's  options table.

Solution.



  1. Login to your WordPress database in phpMyAdmin or similar.

  2. Open the wp_options (the prefix may vary) table.

  3.  Click on "browse" from the menu.

  4.  Edit the option_value of the option_name "siteurl" to the URL of your new site.

  5. Go to page 2 of your options table and add the new URL similarly in the option_name "home".

  6. Close phpMyAdmin.

This should fix the problem.

Content does not upload


Problem?


Uploading media does not work. Various files such as images and videos do not upload in your database. This problem occurs when your database's default upload location does not change while shifting the database. You can solve this problem easily.

Solution.



  1. Go to Settings>>Media in your WordPress admin panel.

  2. Fill in your upload folder and full URL path.. They should look like
     wp-content/uploads

     /home/yourusername/wp-content/uploads

  3. Save the changes.

This can also be done by editing upload value in the wp_options table in your database if you don't have access to your dashboard due to some other migration problem. This should fix the issue.

This is all we have for you in this post. I hope this guide will help you a bit. Thanks for reading.

Comments

  1. Nice article. However, the first problem "Homepage opening but clicking any link gives a blank/404/error page" can also be fixed by changing the homepage and site URL from the settings page.

    ReplyDelete
  2. Piyush Shrivastava21 May 2012 at 01:36

    True, but in some cases the users could not open the dashboard even. This can be helpful.

    ReplyDelete
  3. Great tutorial. Here is great guide about how to migrate your WordPress website from one host to another without getting errors.

    ReplyDelete

Post a Comment

Popular posts from this blog

The Top 10 WeboGraffiti Posts From 2012

2012 had been a great year for WeboGraffiti. Some major events we had were WeboGraffiti Photography Campaign, our first giveaway, shifting from WordPress to Blogger and many more. We had fun this year and we hope 2013 to bring more happiness to our website. This post is a compilation of the 10 posts on WeboGraffiti which were the most popular, most read and most commented throughout the year. We hope you will like these posts.



Is Your Sony SmartWatch Not Charging?

Though the Sony SmartWatch 1 was the first of its kind and its users may consider it an excellent gadget, one problem that many users faced with it was that it does not charge if the charger is not used for a while. I faced the same issue and found some unexpected solutions of this problem which I have complied in this post.



The Pin Scratch Method This might seem funny but it worked for me. Take something which is softly pointed; such as a guitar pick or a paper pin and gently rub the four small golden circles with it. Do not use much force to do this as you may damage your charger. After scratching, try connecting the charger again and see if it works. You might see wonders.


This problem might occur when your charging slots get covered with dust particles. The solution would work most of the times. The Paper Clip Method If the first method doesn't work for you, the problem might be in the locking system of your watch and charger. The charging area of your Sony SmartWatch has fou…