How to Fix 404 Not Found Error in WordPress

Free WordPress Tutorials for the Beginners

how to fix 404 not found error

WordPress throw 404 not found error when requested pages or posts are not found. In most of the case, you can quick fix this error by updating permalink in the WordPress dashboard. This error also occurs when the configuration file called .htaccess in the server is missing or need to update with pieces of code. In this guide you will learn how to fix 404 not found error in WordPress.

Fix 404 Error Updating Permalinks

Login to WordPress dashboard and click on Permalinks under Settings. Click on Save Changes. It will automatically update the configuration file and fix the issue.

404 not found error

If your post or pages still showing 404 error you need to create .htaccess file (if already not there in server) or update with small code in the server.

Update .htaccess File using Plugin

Yoast SEO is powerful plugin to boost your blog in the search engine. It also provides some essential tools like updating robot.txt and .htaccess in few clicks. You can easily update (not create) .htaccess file using Yoast SEO Plugin.

Install Yoast SEO plugin clicking on Add New under Plugins.

404 not found error

In the search box at the right side, type Yoast SEO. Click on Install Now button and Activate it.

Search plugins

Now, you will see new option named SEO after activation in WordPress panel. Click on Tools under SEO.

SEO tools

Click on File editor to edit .htaccess file.

404 not found error

You will see robots.txt and .htaccess box in the next screen. Copy below code and paste in .htaccess box and click on Save change to .htaccess button.

# 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]
</IfModule>
# END WordPress
404 not found error-edit htaccess

If you didn’t see .htaccess file option, you need to create .htaccess file using FTP client FileZilla.

Create and Update .htaccess file Manually using FTP Client

Download and Install FTP client FileZilla. Connect to your server using FTP login credential.

Ftp connect to server

Double click on public_html folder. You will see the blog’s core files e.g. wp-content, wp-admin.

Create .htaccess in the same location where wp-content and wp-admin folders are located. Right click on server section at the bottom right and Click on Create new file.

create new file

Type the name .htaccess in the box and click on OK button.

404 not found error-name htaccess

.htaccess file is created and updates automatically with default code. Verify or update .htaccess file if necessary following the steps discussed above in Update .htaccess file using plugin.

We hope this guide on how to fix 404 not found error in WordPress is helpful. You may also like to see the guide on how to add website to Google webmaster tools that will help you to find out error pages and many more to optimize your blog performance in search engine.

If you find this guide helpful please share and follow us on facebook and twitter.

Leave a Reply