How to Fix 404 Error in WordPress

How to Fix 404 Error in WordPress

WordPress 404 Error: Page Not Found

For a very big CMS platform like WordPress, it is possible to get 404 Error. It can even occur due to a minor change. Here in this blog, you will get to know how to fix 404 error in WordPress.

WordPress is a great software package to use which is very convenient for the users who are not familiar with coding.
But sometimes you face a message showing on your screen “404 ERROR PAGE NOT FOUND” while using WordPress. Let us first understand what this particular error is.

What is 404 Error?

A 404 error is an error message that you encounter when a web page which you are trying to access could not be found on the server. In other words, we can say it is generated by a server when any particular URL is not found.

Now if you get any 404 error message then you don’t have to get stressed as it is a very common problem that users face while using WordPress. In this article, we will provide you all the essential information about how to fix WordPress posts returning 404 error. So keep reading!!!

Reset Permalink

Now the question arises that What are permalinks? Permalinks are the permanent URLs to your individual pages and blog posts. There are two methods through which we can reset these permalinks.

1st method

After logging into your account go to the admin dashboard. Go to settings, there you will find permalinks under media option.
Click on permalinks and select the plain radio button.
After scrolling down the page tap on save changes button.
Your permalinks have been reset after saving changes. Now you won’t find any 404 error message and you can check your posts, pages, and images. If this method doesn’t work then you can try this method manually given below.

2nd Method: Do it manually

If you need to reset permalinks manually then you have to access and edit your .htaccess file which is located in the root of your site. You can access your .htaccess file through SSH, command line, FTP or cPanel.

There are two ways through which you can edit your .htaccess file in WordPress manually

  • Download a copy of your .htaccess file and then modify it in a text editor which is compatible. then you can re-upload it on your site substituting the original one.
  • The second way is to use SSH or FTP client such as Filezilla to modify your .htaccess file directly on your server and then tap on save changes.

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

Fix Custom Post Types

In this, you have to check if your custom post types have unique titles and slugs. If any two or more posts have the same title then they need to be altered.

Just a single post/page can contain same slug or URL. So make sure to change the others to something one of a kind. Otherwise, it will show 404 error message on the screen.

Still Getting the WordPress 404 Error?

If you tried the above methods and still you are getting an error message then you need to troubleshoot the issue further.

Activate the WordPress twenty-seven theme. In the admin dashboard, you will find appearance option. then after clicking on that go to themes and click on activate when you find the WordPress default theme.
Now if you don’t find any 404 error message on your screen then your theme was creating this problem.
If you still find the error then switch to your previous theme and deactivate all the plugins. this might help you resolve the error.

Change and update WordPress URL in database

If you encounter any 404 error message saying that “The requested URL was not found on this server. If you entered the URL manually, please check your spelling and try again.”, then go to your database name and choose wp-option.

Now change the URL like your website URL is https://www.xyz.com/blog replace it to http://localhost/blog

Get in touch with our support team

If the above methods are not at all useful and you are still having trouble in resolving 404 error then don’t panic.
Our support team is just one call away to help you. You can contact our professional experts and they will listen to you and will try to provide effective solutions to your problem.

For any Technical help and support Dial, WordPress customer service number +1 888 614 0555.

Also Read:
11 essential tips to ensure your WordPress Security
4 Simple Way to Backup Your WordPress Site
WordPress Maintenance – An Advance Guide
8 Signs Indicating Your WordPress site Hacked



Leave a Reply