How To Fix Error 404 On WordPress
How To Fix Error 404 On WordPress
How To Fix Error 404 On WordPress
In this article, we will help you resolve all your queries regarding the error 404 and we will
help you fix the error in easy steps. Let's get started -
Each code element has its own value. The first 4 says that the request took too much time or
the user could enter the URL incorrectly. 0 implies syntactic inaccuracy, and the last 4
indicate a specific type of problem.
In simple terms, a 404 error means that the user tries to access the page where the
necessary text and some content is currently missing. A non-existent page could have been
here before, perhaps it was deleted, moved to another folder or its title was the title, as a
result, the URL has changed. Depending on the browser you are using, the message may
vary slightly. For example, Firefox displays “404 Not Found”, and Chrome shows the
message “404. That’s an error”.
sitechecker.pro[/caption]
These error messages can be fairly uncertain, and any website can customize its own 404
error page. This is not necessary, but it does explain to visitors that the website is working,
and the only problem is the specific page that they are trying to find. However, what are the
reasons for the error and how to fix it?
What causes Error 404 Not Found on WordPress?
Ideally, users should not face the pages with 404 server response. However, it can be quite
problematic to avoid losing the content on a site with dozens of sections and hundreds of
pages. Moreover, it is difficult to track all the response codes manually — for this, it is better
to use special services and programs (we will discuss them later).
For now, let’s look at the causes of error 404 not found:
● Invalid URL. In some cases, the error may be in the additional letter typed in the
URL of the page.
● Problems with caching. Sometimes the browser can cache the page you are trying
to access, and until it is found, you will see a 404 error, even if the site works for
everyone else.
● Problem with domain name server (DNS) settings. Perhaps your domain
information has not yet been updated in DNS, so you see an error when you try to
access one of the pages on your site.
● Compatibility issues in WordPress. In some cases, problems with the plugin or
theme can affect how WordPress creates URLs and permalinks for your site. Then, if
someone tries to access a URL that no longer works, a 404 error occurs in
WordPress.
● The File / Page has been removed from the resource.
● Incorrect redirect to the page that changed the address.
● The server does not work correctly.
It is important to understand that 404 not found is not unique to WordPress only. It can
appear no matter what platform your website is using. However, if you use WordPress, you
have an advantage, as there are many ways to solve this problem. Let’s talk about what to
do if your website gets an error 404 not found in WordPress. Learn more about common
errors (Error 403, Error 500, Error 502, Error 504)
After that, you will need to download and configure an FTP client. We recommend FileZilla,
as it is free and offers all the features that you may need.
Before you begin serious troubleshooting, we recommend that you try to update all the
plugins and themes, clear the cache and giving it five or ten minutes to settle everything.
If the error is not still fixed, then there is a problem on your site. In this case, let’s consider
three potential solutions one after another.
One of the most common causes of a WordPress HTTP error 404 not found is a problem
with how WordPress generates your permanent links. As you may know, WordPress
provides you with several options for formatting the links of your posts and pages. For
example, you can configure the platform to use simple numeric links or specify the name of
each entry as a URL:
In any case, the first thing you need to do when you fix a 404 error in WordPress is to reset
your permalink settings. There are two ways to do this: one through the control panel
(Console) and the other via FTP. If you have access to a control panel, follow the
instructions in this section, if not, you should go to method number two.
If you can enter your Dashboard, start by going to the Settings — Permanent links tab.
Pay attention to the structure that your site is currently using. You will need to temporarily
change it to reset the permalink settings in WordPress, but you change it just for a moment.
Select the Plain option in the General settings section and click the Save Changes button
at the bottom of the page.
The page will reload. Then you can continue and select your previous type of permanent
links and save the changes again. This is all that is required to reset the structure of links to
WordPress.
Now try viewing your website as usual. Check the pages that previously gave an error 404. If
the error is gone, you are well done — it took you a minimum amount of time to fix it!
If you are using an Apache web server, then once you make changes to the permalink
structure in WordPress, they are saved to a file called .htaccess. This file defines how
WordPress will interact with its server, as well as the way URLs are created for pages.
If you do not have access to the control panel, you will need to manually edit .htaccess to
reset the permalinks. To get started, go to your site via FTP and go to the root WordPress
folder. This is the directory that contains the WordPress installation and is usually located in
the public_html or www folder or named after your site:
Open this folder and find the .htaccess file. If you use FileZilla, you need to right-click on the
.htaccess file and select the View — Modify option. This means that you download a copy
of the file to your computer and open it with a default local text editor. Now you can make
any changes you need.
If you do not understand why all the code in this file is needed, do not worry. You should not
make any changes to it unless you are 100% sure of them. However, what you can do is use
WordPress .htaccess code that looks like this:
# 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
This is a clean .htaccess file without any changes. It will remove any changes made to your
permalink structure. Go ahead and back up the contents of the old .htaccess file and replace
it with a snippet of the code above.
After that, save the changes to the .htaccess file using a text editor and close it. FileZilla will
ask if you want to replace the existing .htaccess file with the copy you just edited. Confirm
the request, and that’s all! You simply reinstall your WordPress permalinks manually, without
breaking anything in the process.
At this stage, try again to return to your site. Http Error 404 should disappear, which is
already great news. However, you can still return the previous permalink structure if you
don’t like numeric URLs.
Remember that you can change the way you view your permalinks by going to the control
panel and to the Settings — Permanent links tab. Select the structure that your website
used before error 404, and save the changes. Then everything should return to normal
operation.
As mentioned earlier, sometimes your plugins and themes can affect the structure of your
WordPress, depending on their settings. If you have tried one or both of the previous
methods and still get the 404 error, disable your themes and plugins.
If you are a WPOven user, you can directly Deactivate the plugins and themes from your
WPOven dashboard. Simply navigate to your site management page. There you will see a
list of the plugins and themes currently installed and activated on the site. You can
deactivate the plugin/theme by clicking the 'Deactivate' button next to there name as shown
below
If you are not a WPOven user, then there are two other ways to do this, depending on
whether you have access to the dashboard or not. If you have access, go to the Plugins —
All Plugins tab and perform this process for each of your plugins:
Your goal is to disable each plugin one by one. You can disable them all at once, but in most
cases only one plugin causes problems. If disabling one of your plugins fixes a problem, you
have three options. You can check if there is an available update and temporarily disable the
plugin.
If you have checked all your plugins, and none of them turned out to be the cause of the
problem, you will also have to make sure that your active topic does not result in http error
404 not found. This process is much faster since you only need to check only one theme. Go
to the Themes tab and switch your active topic to another one:
Now check if still get the error 404 not found. If you get it, then you need to choose again
between searching for an update or searching for a new theme. Switching themes on
WordPress can be a bit troublesome, but in the end, it’s necessary since your current theme
causes errors. At WPOven the Best Managed Wordpress Hosting we provide you with -
With all plans. Starting Just $16.61 Per Month. Check out our Plans Here
If you do not have access to the dashboard, you can disable the theme and plug-ins
manually via FTP. To do this, go to your site using FileZilla, then go to the
public_html/wp-content directory. Here you will find several folders, two of which are called
plugins and themes respectively:
First, go to the Plugins directory. You will notice that each plugin has its own folder. Select
one of these folders by clicking on it with the right mouse button and select the Rename
option:
Change the folder name to something like akismet.disabled, so that you can easily identify
it. Changing the plugin folder name is enough for WordPress to disable it. Now check
whether the error 404 has fixed. If not, return the default name to this folder and repeat this
process for each next plugin in the folder.
If one of your plugins caused the error, you know how to handle it. However, if it turns out
that the 404 error is not due to them, you can go to the themes directory: wp-content —
themes. Find the folder with the active theme and rename it the same way as the plugins
Since WordPress always needs an active theme, disabling yours will cause the platform to
use one of the ready-made options by default. This may affect the appearance of your
website, but do not worry, this is temporary.
If the error has disappeared, you may need to pick a new theme. However, if this is not the
case, restore the previous name of your theme folder to make WordPress detect it again.
● attract attention,
● explain the situation to the users,
● suggest possible options.
Disney[/caption]
Taking into account the specifics of the resource, invite the visitor to go to the main page,
use the search, get acquainted with the shares or just entertain him. Check out best
404-page ideas.
What should be on page 404 to benefit the resource? The answer is obvious: everything that
the reader wants to know. To achieve this effect, the following elements are useful:
On your website, you are able to install in a traditional way Broken Link Checker plugin.
After activation, it will display broken URLs in the “Incorrect Links” subcategory (“Tools”
panel). The extension will allow you to edit, delete links and mark them as correct.
2. With the help of Google analytics
To configure the Google Analytics, insert the following code in error 404 not found page:
You can find out how many users have seen “not found” page in the “Behavior”, “Site
Content”, and “All Pages” sections by setting the filter by the name of the missing page.
Go to Google Search Console page, then open “Scan” page, click on “Scan Errors” and then
on “Error 404”.
Error 404 Not Found may seem simple, but it can cause great damage. If your visitors
cannot find the pages they need, they can start looking elsewhere. Who will want such a
situation? It will mean the lost traffic and possibly lower conversions.
Fortunately, there are many ways to solve this problem in WordPress, including disabling
themes and plugins, restoring your .htaccess file and resetting your permalinks.