How to solve WordPress 404 after migration

WordPress is one of the most popular CMS nowadays. It helps us creating dynamic websites easily. However, sometimes we face errors or problems with it. You may got stuck with a 404 or page not found error after migrating your WordPress website from one host to another. In this tutorial, we are going to show you how to solve WordPress 404 not found error after migration.

Different Ways to solve WordPress 404 after migration

Depending on the situation, there are different method to overcome this issue. Here I am going to show you two easy ways to solve the problem.

  • From WordPress Dashboard
  • From cPanel or FTP

You can learn both of this method watching this video. Here we showed how you can solve the WordPress 404 page not found error by solving a real website.

Solve WordPress 404 error from WordPress Dashboard

Follow these steps to solve the WordPress 404 error from your dashboard. You are being recommended to try this method first.

  • Login to WordPress Dashboard as an admin.
  • Got to Permalinks under the menu Settings.
    The roadmap to this will be Settings » Permalinks
  • Then select Custom Structure and click on Save.
  • If it didn’t solve the issue then save again.

Hopefully, this will solve the issue in 90% cases. If you are one of that unlucky 10%, please consider following the next method.

Solve WordPress 404 error from cPanel

This is a little developer level step but if you don’t have any coding skills then no need to worry. This method is not as hard as you may thought. Follow the steps below to solve the 404 error or Page not found error from your cPanel.

  • Login to your cPanel or FTP and go to the root directory of your website.
    If you are logged in to cPanel, go to File Manager » public_html » your websites root directory.
  • There should be a file named .htaccess then rename the file and create a new one named .htaccess
  • If there is no file named .htaccess then create one and add this code below to the file.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress

Why did this WordPress 404 error happen?

While I was young in WordPress, I fall into this issue while I had been hired to transfer one of my clients website. As this was the very first time I was doing that, I searched on Google “how to transfer wordpress website without plugin” and there were a few results. I followed one of them, can’t remember the title though.

After transfering all the files and database, I completed all the necessary things and the site was live! I was feeling so excited but suddenly while I clicked on a blog post it treturned an error with a number 404. After quite an hour of research, I was able to overcome the issue. Then I studied a bit more to learn why did this happen and how to solve. I will share, sure.

Here are some common reasons behind the 404 page not found error in WordPress.

  • If you forget to transfer the .htaccess file as well.
  • If the .htaccess file get corrupted.
  • If the .htaccess file has incorrect or inappropriate codes.
  • If the posts or pages really doesn’t exists!

Final Words

If you can’t solve the issue thyself, we recommend to contact your hosting provider. Hopefully, they can help. If you are using any unmanaged hosting services them WPBunny can help you, they provide instant support for WordPress errors and issues at an affordable price. If this article helps, share this and comment your thoughts below.

[TheChamp-Sharing title="Sharing is Caring" count="1" total_shares="ON"]

Leave a Comment

Your email address will not be published. Required fields are marked *

90 ÷ fifteen =

Shopping Cart
Scroll to Top