How to fix HTTP 404 not found error in WordPress

For WordPress website owners, HTTP 404 can be frustrating. If you wonder how to fix HTTP 404 not found error in WordPress easily? , then we invite you to read this article because here you will find the solution.

What is HTTP 404 error?

Most website builders are aware of what HTTP is and what it is for . However, when the 404 error occurs through this protocol, it refers to an HTTP status code that indicates that the server could not deliver the request delivered by the web browser. Hence, you have a bad link that can be counterproductive for a website owner because traffic drops to your URL.

Why does the HTTP 404 error occur?

The HTTP 404 error can occur because the content of a website has been moved or the URL has been removed. Sometimes, the error is generated when the user enters a wrong URL, because of a wrong link or because there are internet connection problems.

Next, we explain the procedure that you must follow step by step to be able to solve the HTTP 404 error in WordPress in the simplest way.

How to fix HTTP 404 not found error in WordPress easily?

If you manage a web page in WordPress and you have observed the HTTP 404 error, we advise you to follow the following steps to solve this problem .

Create a backup of your website

First of all, it is advisable that you make a backup copy of your website in order to avoid inconvenience when editing the files. To do this, go to the “Hosting Control Panel” and prepare the backup copies of the files on the backup server. Later, download an FTP client via “Filezilla”.

Format and reset your WordPress permalinks

Sometimes the HTTP 404 error is caused by the way WordPress sets permalinks. For this reason, we advise you to format your links and restore them through the desktop.

Locate the “Settings” tab and choose “Permalinks.” Review the structure of your website at the time of reestablishing the permanent link (to return to it later) and select in “Common Settings” the option “Simple”. Then press the “Save” button. Open your page and see if the error is still showing.

Restore the .htaccess file to fix HTTP 404 error in WordPress

To restore the .htaccess file you must go to your website via FTP. To do this, you can use “Filezilla Client” . Once you are logged in as an FTP client, locate the WordPress root directory and look for the .htaccess file there. Immediately select the “View / Edit” option .

Download a copy of the .htaccess file and access it through a text editor. Select all lines of code and replace them with the following (note that each point represents a line in the code):

  • # 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

Save the changes from the text editor and close this tool. Filezilla Client will ask if you want to replace the .htaccess file with the copy you just created. Click on the “OK” button Access your website again and if the problem persists, read the next step.

Disable plugins

Access the desktop and the “Plugins” menu. Select “All plugins” and click “Deactivate” (below the name of each plugin). Perform this action for each item and go to your website to check if the HTTP 404 error has disappeared. If the problem continues, reactivate the plugin and check all the others.

Disable themes to fix HTTP 404 error

If a theme is the source of the problem, you can delete themes in WordPress by accessing your website as an FTP client and looking for the public_html / wp-content folder.

You will find the directory “Themes” where you can change the name of a theme so that WordPress adopts another as default. Check if the error is gone and re-enable the old theme.

 

 

Leave a Comment