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.
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.
This should solve your problem and the links should start opening again.
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.
This should fix the 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.
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.
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.
- Open your web server via FTP or any other file manager.
- Locate .htaccess file in the WordPress home directory. (If you don't have any such file you can skip step 2, 3 and 7).
- Download the file and delete it from your server.
- Now go to your WordPress dashboard and then go to "Permalinks" under the settings module.
- Set the permalinks structure to "default" (don't worry, this is temporary) and see your posts and other pages should start appearing again.
- Set the permalinks structure to whatever fits your blog.
- 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.
- Login to your WordPress database in phpMyAdmin or similar.
- Open the wp_options (the prefix may vary) table.
- Click on "browse" from the menu.
- Edit the option_value of the option_name "siteurl" to the URL of your new site.
- Go to page 2 of your options table and add the new URL similarly in the option_name "home".
- 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.
- Go to Settings>>Media in your WordPress admin panel.
- Fill in your upload folder and full URL path.. They should look like
wp-content/uploads
/home/yourusername/wp-content/uploads
- 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.
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.
ReplyDeleteTrue, but in some cases the users could not open the dashboard even. This can be helpful.
ReplyDeleteNice Article... thanks...
ReplyDeleteGreat tutorial. Here is great guide about how to migrate your WordPress website from one host to another without getting errors.
ReplyDeleteStunning quest there. What occurred after? Take care!
ReplyDeleteHmm is anyone else encountering problems with the pictures
ReplyDeleteon this blog loading? I'm trying to figure out if its a
problem on my end or if it's the blog. Any responses would
be greatly appreciated.
What's up, always i used to check weblog posts here in the early hours in the morning, because i love to learn more
ReplyDeleteand more.