Contains paid promotion

Advertisement

How to get around 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 in addition, maybe a search box in which you can enter search terms

Schluesselnotdienst Aktion - kautionsfrei.de
Anzeige

Now, on the one hand, you have also created subpages that are not accessible via normal navigation, and that you should not, as they are only to be displayed after a specific action (for example, newsletter subscribed).

However, what is worse than the disturbed user experience is the impact of bad pages on your ranking on Google.

How to work around bug 404 and set up your own landing page under WordPress can be found in our article

Fehler 404 beheben
Anzeige
SanDisk Ultra 128GB microSDXC Speicherkarte + Adapter bis zu 100 MB/Sek, Class 10, U1, A1, FFP
Unverb. Preisempf.: € 52,99 Du sparst: € 23,00 (43%) Prime Preis: € 29,99 zum Angebot*
Preis inkl. MwSt., zzgl. Versandkosten
*Zuletzt aktualisiert am 16. October 2018 um 9:12 . Preise können sich geändert haben. Alle Angaben ohne Gewähr.

How to get around 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 in addition, maybe a search box in which you can enter search terms

Schluesselnotdienst Aktion - kautionsfrei.de
Anzeige

Now, on the one hand, you have also created subpages that are not accessible via normal navigation, and that you should not, as they are only to be displayed after a specific action (for example, newsletter subscribed).

However, what is worse than the disturbed user experience is the impact of bad pages on your ranking on Google.

How to work around bug 404 and set up your own landing page under WordPress can be found in our article

Fehler 404 beheben
Anzeige
SanDisk Ultra 128GB microSDXC Speicherkarte + Adapter bis zu 100 MB/Sek, Class 10, U1, A1, FFP
Unverb. Preisempf.: € 52,99 Du sparst: € 23,00 (43%) Prime Preis: € 29,99 zum Angebot*
Preis inkl. MwSt., zzgl. Versandkosten
*Zuletzt aktualisiert am 16. October 2018 um 9:12 . Preise können sich geändert haben. Alle Angaben ohne Gewähr.

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 submitting your own sitemap, search analysis, crawl errors, links to your website, etc.

Therefore you should not neglect them.

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 submitting your own sitemap, search analysis, crawl errors, links to your website, etc.

Therefore you should not neglect them.

See picture:

Google Search Console
Advertisement

2. How do 404 errors affect the ranking?

2. How do 404 errors affect the 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 (which 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.

Now, if a user clicks on the link, and ultimately ends up on a typical 404 page then that 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 searched

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.

300x250_Students
Anzeige

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 (which 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.

Now, if a user clicks on the link, and ultimately ends up on a typical 404 page then that 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 searched

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.

300x250_Students
Anzeige

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 will see a page that has little or no usable content, such as an almost empty or completely blank page.

Source: Google

Anzeige

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 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 unique replacement 404 (Not Found) or410 (Gone) should be returned. These codes give browsers and search engines clear information that the page does not exist. You can also show a custom 404-page, For example, a list of your most visited pages or a link to your homepage
If your page has moved or there is a clear replacement, please return 301 (Moved permanently) to redirect the user accordingly.

With fetch like Google oder other Tools available on the web you can check if your URL returns the correct code.

Source: Google

Anzeige
Samsung T835 Galaxy Tab S4 LTE Tablet-PC, 4GB RAM schwarz
Samsung T835 Galaxy Tab S4 LTE Tablet-PC, 4GB RAM ...*
von Samsung

SAMSUNG T835 Tab S4 26,72cm 10,5 Zoll 4+64GB LTE black

Unverb. Preisempf.: € 759,00 Du sparst: € 144,21 (19%) Prime Preis: € 614,79 zum Angebot*
Preis inkl. MwSt., zzgl. Versandkosten
*Zuletzt aktualisiert am 16. October 2018 um 9:14 . Preise können sich geändert haben. Alle Angaben ohne Gewähr.

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 will see a page that has little or no usable content, such as an almost empty or completely blank page.

Source: Google

Anzeige

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 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 unique replacement 404 (Not Found) or410 (Gone) should be returned. These codes give browsers and search engines clear information that the page does not exist. You can also show a custom 404-page, For example, a list of your most visited pages or a link to your homepage
If your page has moved or there is a clear replacement, please return 301 (Moved permanently) to redirect the user accordingly.

With fetch like Google oder other Tools available on the web you can check if your URL returns the correct code.

Source: Google

Anzeige
Samsung T835 Galaxy Tab S4 LTE Tablet-PC, 4GB RAM schwarz
Samsung T835 Galaxy Tab S4 LTE Tablet-PC, 4GB RAM ...*
von Samsung

SAMSUNG T835 Tab S4 26,72cm 10,5 Zoll 4+64GB LTE black

Unverb. Preisempf.: € 759,00 Du sparst: € 144,21 (19%) Prime Preis: € 614,79 zum Angebot*
Preis inkl. MwSt., zzgl. Versandkosten
*Zuletzt aktualisiert am 16. October 2018 um 9:14 . Preise können sich geändert haben. Alle Angaben ohne Gewähr.

4. Create a 404 page

4. Create a 404 page

It is actually relatively easy under WordPress, 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 you 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
Anzeige

PS: 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.

It is actually relatively easy under WordPress, 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 you 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
Anzeige

PS: 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.

4x CHIP TESTSIEGER Handyversicherung_600x500
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 have to create it and enter it into your webspace either directly from your provider’s website (most 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 MyFault 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
Schluesselnotdienst Aktion - kautionsfrei.de
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 have to create it and enter it into your webspace either directly from your provider’s website (most 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 MyFault 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
Schluesselnotdienst Aktion - kautionsfrei.de
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
300x250_Students
Anzeige

We recommend the following plugins:

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

Print Friendly, PDF & Email

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
300x250_Students
Anzeige

We recommend the following plugins:

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

Print Friendly, PDF & Email
Become Guest Writer

We publish your guest contribution free of charge in German and English
incl. backlink to your website and identification of the author

Anzeige
Blogverzeichnis Bloggerei.de

About the author:

Michael Suhr
Michael SuhrWebdesigner / Economist
After 20 years in logistics management, I have been working as a freelance web designer and office trainer since the beginning of 2015. Incidentally, I give tips and tricks for more digital skills in my blog as time permits.

Search by category:

Anzeige
Die Amazon.de VISA Karte
 Preis nicht verfügbar zum Angebot*
Preis inkl. MwSt., zzgl. Versandkosten
*Zuletzt aktualisiert am 17. October 2018 um 2:33 . Preise können sich geändert haben. Alle Angaben ohne Gewähr.

About the author:

Michael Suhr
Michael SuhrWebdesigner / Economist
After 20 years in logistics management, I have been working as a freelance web designer and office trainer since the beginning of 2015. Incidentally, I give tips and tricks for more digital skills in my blog as time permits.

Search by category:

Anzeige
Die Amazon.de VISA Karte
 Preis nicht verfügbar zum Angebot*
Preis inkl. MwSt., zzgl. Versandkosten
*Zuletzt aktualisiert am 17. October 2018 um 2:33 . Preise können sich geändert haben. Alle Angaben ohne Gewähr.
2018-09-28T14:06:49+00:00By |Categories: Google, SEO, Wordpress|
In order to optimize our website for you and to be able to continuously improve it, we use cookies. By continuing to use the website, you agree to the use of cookies. Ok