Anzeige
Advertisement

Fix Error 404 on your WordPress website

As a website operator, you want to provide your visitors with an undisturbed and error-free surfing experience.

There is actually nothing more annoying than if sometime so-called dead links, e.g. In the creation phase, caused by faulty backlinks from other websites, by deleted files and images, etc., which guide the user to the infamous 404 error page.

Often the visitor then gets to see a page that has nothing to do with the layout (which actually runs like a red thread through the page), but a hint page with the entire sitemap, which displays all subpages. And maybe even a search box where you can enter search terms.

Fehler 404 beheben

Topic Overview

Anzeige

Now it is on the one hand so that one has also created subpages, which are not accessible via the normal navigation, and it should not be, since they should be displayed only after a certain action (for example, newsletter subscribed).

But what’s worse than the disturbed user experience is the impact of broken pages on your ranking on Google.

How to work around the error 404 and set up your own landing page under WordPress you will find in our article.

Fix Error 404 on your WordPress website

As a website operator, you want to provide your visitors with an undisturbed and error-free surfing experience.

There is actually nothing more annoying than if sometime so-called dead links, e.g. In the creation phase, caused by faulty backlinks from other websites, by deleted files and images, etc., which guide the user to the infamous 404 error page.

Often the visitor then gets to see a page that has nothing to do with the layout (which actually runs like a red thread through the page), but a hint page with the entire sitemap, which displays all subpages. And maybe even a search box where you can enter search terms.

Fehler 404 beheben

Topic Overview

Anzeige

Now it is on the one hand so that one has also created subpages, which are not accessible via the normal navigation, and it should not be, since they should be displayed only after a certain action (for example, newsletter subscribed).

But what’s worse than the disturbed user experience is the impact of broken pages on your ranking on Google.

How to work around the error 404 and set up your own landing page under WordPress you will find in our article.

1. How many error pages do I have?

1. How many error pages do I have?

The easiest way to find out from the Google Search Console is if and how many error pages have gotten your way. Anyway, the Google Search Console is a valuable tool to find out if there are page structure errors, and much more besides: proactively submit your own sitemap, search analysis, crawl errors, links to your website, etc.

Therefore you should not neglect them in any case.

See picture: (click to enlarge)

Google Search Console
Advertisement

The easiest way to find out from the Google Search Console is if and how many error pages have gotten your way. Anyway, the Google Search Console is a valuable tool to find out if there are page structure errors, and much more besides: proactively submit your own sitemap, search analysis, crawl errors, links to your website, etc.

Therefore you should not neglect them in any case.

See picture: (click to enlarge)

Google Search Console
Advertisement

2. How does error 404 affect my ranking?

2. How does error 404 affect my ranking?

The endeavor of Google is to provide users with the most relevant results in terms of their inputs. Exactly this fact has led Google today by a long way to any other market leader among the search engines.

So, if you change the URL of one of your pages, delete it (it also affects images and files), the URL to that content will still be in the index, and Google will also serve that link with a query.

Advertisement

If a user now clicks on the link, and ultimately ends up on a typical 404 page, then this is unsatisfactory for everyone involved.

  • The user does not get the result he expected
  • Google could not provide the user with a relevant result
  • For the site operator, it is also not desirable the visitor did not find what was wanted

Of course, the ranking of your page is not immediately devalued just because here and there once an error page has crept.

But important is that you react here in any case, and proactively look into the Search Console to determine if, where, and how many errors have crept in.

If such error pages accumulate over time and over a longer period of time, your page will certainly be devalued in the relevance of search queries. You may also want to proactively submit an updated Sitemap through Google Search Console.

The endeavor of Google is to provide users with the most relevant results in terms of their inputs. Exactly this fact has led Google today by a long way to any other market leader among the search engines.

So, if you change the URL of one of your pages, delete it (it also affects images and files), the URL to that content will still be in the index, and Google will also serve that link with a query.

Advertisement

If a user now clicks on the link, and ultimately ends up on a typical 404 page, then this is unsatisfactory for everyone involved.

  • The user does not get the result he expected
  • Google could not provide the user with a relevant result
  • For the site operator, it is also not desirable the visitor did not find what was wanted

Of course, the ranking of your page is not immediately devalued just because here and there once an error page has crept.

But important is that you react here in any case, and proactively look into the Search Console to determine if, where, and how many errors have crept in.

If such error pages accumulate over time and over a longer period of time, your page will certainly be devalued in the relevance of search queries. You may also want to proactively submit an updated Sitemap through Google Search Console.

3. What is a 404 soft error?

3. What is a 404 soft error?

A soft 404 error returns a page from a URL on your site that says the page does not exist. In addition, a 200 code (success) is sent to the browser. In some cases, instead of a “Not Found” page, you’ll see a page that has little or no usable content, such as an almost empty or completely blank page.

Source: Google

Advertisement

Why is that important?

It does not make sense to return a success code instead of 404/410 (Not Found / Gone) or 301 (Moved permanently). For a passcode, search engines will receive the information that a real page exists under this URL, so the page may appear in the search results. In addition, search engines continue to try to crawl this nonexistent URL instead of spending time crawling your real pages.

Source: Google

What should I do?

If your page is no longer available and there is no clear substitute, 404 (Not Found) or 410 (Gone) should be returned. These codes give browsers and search engines clear information that the page does not exist. You can also show a user-defined 404 page for the user. For example, a list of your most visited pages or a link to your homepage.
If your page has moved or there is a unique replacement, please return 301 (Moved permanently) to redirect the user accordingly.

With fetch like Google or other tools available on the web, you can check if your URL returns the correct code.

Source: Google

Advertisement

A soft 404 error returns a page from a URL on your site that says the page does not exist. In addition, a 200 code (success) is sent to the browser. In some cases, instead of a “Not Found” page, you’ll see a page that has little or no usable content, such as an almost empty or completely blank page.

Source: Google

Advertisement

Why is that important?

It does not make sense to return a success code instead of 404/410 (Not Found / Gone) or 301 (Moved permanently). For a passcode, search engines will receive the information that a real page exists under this URL, so the page may appear in the search results. In addition, search engines continue to try to crawl this nonexistent URL instead of spending time crawling your real pages.

Source: Google

What should I do?

If your page is no longer available and there is no clear substitute, 404 (Not Found) or 410 (Gone) should be returned. These codes give browsers and search engines clear information that the page does not exist. You can also show a user-defined 404 page for the user. For example, a list of your most visited pages or a link to your homepage.
If your page has moved or there is a unique replacement, please return 301 (Moved permanently) to redirect the user accordingly.

With fetch like Google or other tools available on the web, you can check if your URL returns the correct code.

Source: Google

Advertisement

4. Creating a 404 error page

4. Creating a 404 error page

Under WordPress, it is actually relatively easy, since a 404.php file is already implemented as standard here. These can be found in the dashboard under:

“Design” – “Editor” and then on the right side search the entry “404.php”

Here you can freely edit the source code and customize it to your own needs.

See picture: (click to enlarge)

404 Seite in WordPress

Note:
It would not be enough that you simply create a page under WordPress and give it a 404 note.

Because it is crucial that the server confirms the correct status code 404, and not the code 200 (all OK). This causes the previously described 404 soft errors.

Under WordPress, it is actually relatively easy, since a 404.php file is already implemented as standard here. These can be found in the dashboard under:

“Design” – “Editor” and then on the right side search the entry “404.php”

Here you can freely edit the source code and customize it to your own needs.

See picture:

404 Seite in WordPress

Note:
It would not be enough that you simply create a page under WordPress and give it a 404 note.

Because it is crucial that the server confirms the correct status code 404, and not the code 200 (all OK). This causes the previously described 404 soft errors.

Anzeige

5. Create a 404 redirect via htaccess

5. Create a 404 redirect via htaccess

The htaccess file is a configuration file that you can use to control a variety of options (such as access control, redirects, browser caching, gzip compression, and more).

If you do not yet have an htaccess file on your web server, you must create it and enter it into your webspace either directly from your provider’s website (most of them offer FTP access via the web browser) or with a corresponding program such as Filezilla in the main directory Upload.

How to create an htaccess file:

  • Open a blank text document
  • Paste the following code: ErrorDocument 404 http://www.MyDomain.com/MyError Page/404.php (where you can customize My Domain and MyError
  • page to suit your needs)
  • Enter “.htaccess” as file name and save it under “all files” (not as .txt file!)

See picture: (click to enlarge)

htaccess Datei erstellen
Kauf auch du bei der Nummer 1!
Anzeige

The htaccess file is a configuration file that you can use to control a variety of options (such as access control, redirects, browser caching, gzip compression, and more).

If you do not yet have an htaccess file on your web server, you must create it and enter it into your webspace either directly from your provider’s website (most of them offer FTP access via the web browser) or with a corresponding program such as Filezilla in the main directory Upload.

How to create an htaccess file:

  • Open a blank text document
  • Paste the following code: ErrorDocument 404 http://www.MyDomain.com/MyError Page/404.php (where you can customize My Domain and MyError
  • page to suit your needs)
  • Enter “.htaccess” as file name and save it under “all files” (not as .txt file!)

See picture:

htaccess Datei erstellen
Kauf auch du bei der Nummer 1!
Anzeige

6. Create a 404 redirect via Plugin

6. Create a 404 redirect via Plugin

Of course, the easiest way is to use a plugin, which is now available in an almost unmanageable size. As a small decision-making aid, I can advise you to pay attention to this:

  • The plugin is compatible with your WordPress version
  • There are as many active installations as possible
  • It has a premium version, which has also (importantly) received updates lately. (This is also important for security reasons)
  • As many good reviews as possible
Anzeige

We recommend the following plugins from our point of view:

Redirection
All 404 Redirect to Homepage
404page
404 to 301

Such plugins not only relieve you of the work related to the htaccess file, but above all (at least in the premium versions) offer a multitude of possibilities:

  • Find errors on your pages
  • A reporting on how often a redirect in the past from which erroneous URL’s took place
  • Partial individual redirection of specific error pages to individual valid pages

Especially the last point can sometimes make sense, for example, if you operate an online store, and a previously existing product was replaced by a newer (with a new URL), the customer can be referred to the new product, instead of coming to an error page.

Blogverzeichnis Bloggerei.de

Of course, the easiest way is to use a plugin, which is now available in an almost unmanageable size. As a small decision-making aid, I can advise you to pay attention to this:

  • The plugin is compatible with your WordPress version
  • There are as many active installations as possible
  • It has a premium version, which has also (importantly) received updates lately. (This is also important for security reasons)
  • As many good reviews as possible
Anzeige

We recommend the following plugins from our point of view:

Redirection
All 404 Redirect to Homepage
404page
404 to 301

Such plugins not only relieve you of the work related to the htaccess file, but above all (at least in the premium versions) offer a multitude of possibilities:

  • Find errors on your pages
  • A reporting on how often a redirect in the past from which erroneous URL’s took place
  • Partial individual redirection of specific error pages to individual valid pages

Especially the last point can sometimes make sense, for example, if you operate an online store, and a previously existing product was replaced by a newer (with a new URL), the customer can be referred to the new product, instead of coming to an error page.

Blogverzeichnis Bloggerei.de

Search for other topics:

About the Author:

Michael W. Suhr
Michael W. SuhrDipl. Betriebswirt | Webdesign- und Beratung | Office Training
After 20 years in logistics, I turned my hobby, which has accompanied me since the mid-1980s, into a profession, and have been working as a freelancer in web design, web consulting and Microsoft Office since the beginning of 2015. On the side, I write articles for more digital competence in my blog as far as time allows.

Search by category:

You might also be interested in:

Anzeige

Search for other topics:

About the Author:

Michael W. Suhr
Michael W. SuhrDipl. Betriebswirt | Webdesign- und Beratung | Office Training
After 20 years in logistics, I turned my hobby, which has accompanied me since the mid-1980s, into a profession, and have been working as a freelancer in web design, web consulting and Microsoft Office since the beginning of 2015. On the side, I write articles for more digital competence in my blog as far as time allows.

Search by category:

You might also be interested in:

Anzeige

Popular Posts:

1907, 2022

Encrypt emails in Outlook – How it’s done

July 19th, 2022|Categories: Data Protection, Homeoffice, Microsoft Outlook, Office 365, Uncategorized|Tags: , , , , , , |

Standard e-mails are like postcards that everyone can theoretically read. But there are solutions for more security.

1707, 2022

Environmentally friendly printing for more climate protection

July 17th, 2022|Categories: Homeoffice, Microsoft Windows, Uncategorized|Tags: , |

Climate protection starts small. And so not only can costs be saved through environmentally friendly and conscious printing in the office, but the climate can also be protected.

Special Offers: Word & Excel Templates

More

Special Offers: Design CV Templates

See more

Monatliche Technik Bestseller:

Bestseller 2022-2023 WLAN-Heizkoerperthermostate

Kategorie: SmartHome | Energie & Sicherheit

SmartHome | Energie & Sicherheit

Bestseller 2022-2023 WLAN-Heizkoerperthermostate
Produkte anzeigen
Bestseller 2022-2023 Notebooks

Kategorie: Homeoffice

Homeoffice

Bestseller 2022-2023 Notebooks
Produkte anzeigen
Bestseller 2022-2023 Smartphones

Kategorie: Smartphone & Zubehör

Smartphone & Zubehör

Bestseller 2022-2023 Smartphones
Produkte anzeigen

Popular Posts:

1907, 2022

Encrypt emails in Outlook – How it’s done

July 19th, 2022|Categories: Data Protection, Homeoffice, Microsoft Outlook, Office 365, Uncategorized|Tags: , , , , , , |

Standard e-mails are like postcards that everyone can theoretically read. But there are solutions for more security.

1707, 2022

Environmentally friendly printing for more climate protection

July 17th, 2022|Categories: Homeoffice, Microsoft Windows, Uncategorized|Tags: , |

Climate protection starts small. And so not only can costs be saved through environmentally friendly and conscious printing in the office, but the climate can also be protected.

Special Offers: Word & Excel Templates

More

Special Offers: Design CV Templates

See more

Monatliche Technik Bestseller:

Bestseller 2022-2023 WLAN-Heizkoerperthermostate

Kategorie: SmartHome | Energie & Sicherheit

SmartHome | Energie & Sicherheit

Bestseller 2022-2023 WLAN-Heizkoerperthermostate
Produkte anzeigen
Bestseller 2022-2023 Notebooks

Kategorie: Homeoffice

Homeoffice

Bestseller 2022-2023 Notebooks
Produkte anzeigen
Bestseller 2022-2023 Smartphones

Kategorie: Smartphone & Zubehör

Smartphone & Zubehör

Bestseller 2022-2023 Smartphones
Produkte anzeigen
2022-08-07T08:38:19+02:00By |Categories: Google, SEO, Uncategorized, Wordpress|Tags: , |

Title

Anzeige

Most read:

Search by category:

Alle Vorlagen ansehen

Auch interessant:

Go to Top