Smart Custom 404 error page [404page]

Beschreibung

Besucher auf Deine Website zu bringen kostet Zeit und Mühe. Jeder Besucher ist wichtig. Die standardmäßige 404-Fehlerseite der meisten Themes enthält keine Infos, was auf Deiner Website zu finden ist. Ein neuer Besucher, der Dich noch nicht kennt, steht plötzlich in einer Sackgasse und wird Deine Website verlassen. Erstelle eine hilfreiche benutzerdefinierte 404-Fehlerseite ein, um ihn auf Deiner Website zu halten.

Mit diesem praktischen Plugin kannst Du ohne Aufwand Deine eigene 404-Fehlerseite erstellen, die mit fast jedem Theme funktioniert.

Retired Plugin

Development, maintenance and support of this plugin has been retired in october 2023. You can use this plugin as long as is works for you.

There will be no more updates and I won’t answer any support questions. Thanks for your understanding.

Feel free to fork this plugin.

Thanks

Many thanks to the more than 100,000 users of this plugin. You have made this plugin a huge success. It was a pleasure and an honor, but I am retiring from plugin development.

Best regards,
Peter

Verwendung

Erstelle Deine eigene 404 Fehlerseite so wie jede andere Seite auch einfach mit dem WordPress Editor. Dann gehe zu ‚Design‘ -> ‚404-Fehlerseite‘ und wähle die erstellte Seite als 404 Fehlerseite. Das ist auch schon alles!

Warum solltest Du dieses Plugin benutzen?

Im Gegensatz zu ähnlichen Plugins erzeugt das 404page-Plugin keine Weiterleitungen. Das ist ziemlich wichtig, weil ein korrekter Fehler 404 geliefert wird, der den Suchmaschinen mitteilt, dass die Seite nicht existiert und aus dem Index entfernt werden muss.

Im Unterschied zu ähnlichen Plugins erzeugt das 404page Plugin keine zusätzlichen Server Anfragen.

Voraussetzungen

Die einzige Voraussetzung für dieses Plugin ist, dass Du die Permalink-Struktur unter ‘Einstellungen’ -> ‘Permalinks’ auf irgend etwas anderes einstellst als ‘Einfach’. Dadurch wird auch die Behandlung von 404 Fehlern durch WordPress aktiviert.

Block & Shortcode

Block

Das Plugin bietet einen Block „404 Fehler URL“ für den Block Editor, um die URL anzuzeigen, die den Fehler verursacht hat. Es gibt drei mögliche Optionen:

  • „Page“ to show the page including path ( e.g. does/not/exist )
  • „Domain Path“ to show the URL without protocol and parameters ( e.g. example.com/does/not/exist )
  • „Domain Path“ to show the URL without protocol and parameters ( e.g. example.com/does/not/exist )
  • „Full“ to show the complete URL ( e.g. https://example.com/does/not/exist?p=1 )

Shortcode

Das Plugin bietet einen Shortcode „pp_404_url“ für den Classic Editor, um die URL anzuzeigen, die den Fehler verursacht hat. Es gibt drei mögliche Optionen:

  • [pp_404_url page] to show the page including path ( e.g. does/not/exist )
  • [pp_404_url domainpath] to show the URL without protocol and parameters ( e.g. example.com/does/not/exist )
  • [pp_404_url] or [pp_404_url full] to show the complete URL ( e.g. https://example.com/does/not/exist?p=1 )

Plugin Datenschutzinformationen

  • Dieses Plugin setzt keine Cookies
  • Dieses Plugin sammelt und speichert keine Daten
  • Dieses Plugin sendet keine Daten an externe Server

Für Entwickler

Action-Hook

Das Plugin erstellt einen Action Hook 404page_after_404, der verwendet werden kann, um die Funktionalität zu erweitern. Die exakte Position im Ablauf, an der der Action Hook ausgelöst wird. ist von der gewählten Funktionsweise abhängig. Die aufgerufene Funktion darf keine Ausgabe erzeugen. Es gibt keine Parameter.

Konstante

Wenn das 404page Plugin installiert und aktiv ist, wird die Konstante PP_404 definiert. Diese Konstante kann geprüft werden, um das 404page Plugin zu erkennen.

Funktionen

Das Plugin stellt folgende Funktionen zur Verfügung:

  • pp_404_is_active() zur Überprüfung, ob eine 404 Seite ausgewählt ist und die gewählte Seite existiert
  • pp_404_get_page_id() um die ID der 404 Seite zu erhalten
  • pp_404_get_all_page_ids() um ein Array von Seiten IDs in alle Sprachen zu erhalten
  • pp_404_get_the_url( $type ) to get the URL that caused the 404 error
    • Parameter $type string Optional
    • „page“ um die Seite inkl. Pfad zu erhalten ( z.B. does/not/exist )
    • „domainpath“ um die URL ohne Protokoll und Parameter zu erhalten ( z.B. example.com/does/not/exist )
    • „full“ (Standard) um die komplette URL zu erhalten ( z.B. https://example.com/does/not/exist?p=1 )

Native Mode

If you are a theme developer you can add native support for the 404page plugin to your theme for full control.

Blöcke

Dieses Plugin unterstützt 1 Block.

  • URL causing 404 error

Rezensionen

26. Januar 2024
This plugin does exactly what I need to create an effective 404 error page
5. Oktober 2023
Hello Peter, I want to thank you for the use of this lovely, simple plugin. Am sad that you are retiring from supporting it, it will be hard to replace, but I understand life changes. Just wanted to wish you the best in your life and future endeavors! With Appreciation Alannah
Alle 1.183 Rezensionen lesen

Mitwirkende & Entwickler

„Smart Custom 404 error page [404page]“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin mitgewirkt:

Mitwirkende

„Smart Custom 404 error page [404page]“ wurde in 18 Sprachen übersetzt. Danke an die Übersetzerinnen und Übersetzer für ihre Mitwirkung.

Übersetze „Smart Custom 404 error page [404page]“ in deine Sprache.

Interessiert an der Entwicklung?

Durchstöbere den Code, sieh dir das SVN Repository an oder abonniere das Entwicklungsprotokoll per RSS.

Änderungsprotokoll

11.4.6 (2024-04-17) URGENT BUGFIX

  • Bugfix after Cleanup

11.4.5 (2024-04-16) CLEANUP

  • Cleanup

11.4.4 (2022-10-05) FINAL VERSION

  • removed all links to webiste
  • removed request for rating
  • removed manual

11.4.3 (2022-11-05)

  • bugfix for WP 6.1

11.4.2 (2022-11-01)

  • also add class error404 to body tag if page is called directly
  • plugin renamed

11.4.1 (2022-10-16)

  • bugfix: load Javascript for Block only when needed

11.4.0 (2022-10-13)

  • Block added
  • Shortcode added
  • Function pp_404_get_the_url() added

11.3.1 (2022-04-05)

  • nur kosmetisches
  • Plugin Foundation updated to PPF08

11.3.0 (2021-01-06)

  • new option to always send an 410 instead of an 404
  • Plugin-Basis auf PPF07 aktualisiert

11.2.6 (2020-08-23)

  • Plugin Foundation updated to PPF06

11.2.5 (2020-08-22)

  • minor UI adjustments

11.2.4 (2020-08-16)

  • bug fix for Flamingo (see topic) plus potentially other plugins (thanks to garfiedo for supporting me to find the reason)

11.2.3 (2020-07-05)

11.2.2 (2020-03-28)

  • changes to the notification for hopefully better compatibility
  • Plugin Foundation swtiched to PPF04

11.2.1 (2020-01-04)

  • Wenn W3 Total Cache installiert ist und das Caching aktiv ist, werden URLs, die zu einem 404-Fehler führen, automatisch vom Caching ausgeschlossen.

11.2.0 (2020-01-01)

  • Wenn der WP-Super-Cache installiert ist und das Caching aktiv ist, werden URLs, die zu einem 404-Fehler führen, automatisch vom Caching ausgeschlossen.

11.1.4 (2019-12-29)

  • dringende Fehlerbehebung für PPF03

11.1.3 (2019-12-29)

  • Plugin Foundation auf PPF03 aktualisiert, keine funktionellen Änderungen

11.1.2 (2019-11-19)

  • 404 Seiten aus der von Jetpack generierten XML-Sitemap ausschließen

11.1.1 (2019-11-16)

  • from now on it is not only detected if Yoast SEO Plugin is active, but also if the sitemap feature is activated

11.1.0 (2019-11-10)

  • now uses Plugin Foundation PPF02 for plugin compatibility
  • introduces two new functions for developers pp_404_get_page_id() and pp_404_get_all_page_ids()

11.0.5 (2019-10-22)

  • bugfix for Yoast SEO XML Sitemap (see topic)
  • added a note to settings page if Yoast SEO is active

11.0.4 (2019-10-06)

  • bugfix for WPML

11.0.3 (2019-09-01)

  • bugfix for REST API call (see here)

11.0.2 (2019-08-30)

11.0.1 (2019-08-13)

  • fix for PHP 7.1 – __construct() access level in subclass – this is an PHP error that was fixed in PHP 7.2, but I’ve changed my code to also work with PHP 7.1

11.0.0 (2019-08-13)

  • mostly rewritten based on my own newly created Plugin Foundation

10.5 (2019-04-01)

  • some more security improvements

10.4 (2019-03-31)

  • security vulnerability in AJAX call fixed (thanks to Julio Potier for pointing me to this)

10.3 (2019-02-21)

  • fix for compatibility with iThemes Sync (ticket)

10.2 (2019-02-19)

  • just another small change to prevent from potential problems with version 10

10.1 (2019-02-14)

10 (2019-02-14)

  • workaround for WordPress Permalink bug #46000
  • code improvement
  • performance tuning

9 (2019-01-24)

  • Gutenberg note added

8 (2019-01-11)

  • fixed compatibility issue with latest WPML version
  • code improvement
  • UI improvements

7 (2018-07-16)

  • corrected wrong image path
  • added video links to admin page
  • code improvements

6 (2018-06-18)

  • exclude 404 page from XML sitemap generated by Yoast SEO
  • further UI-improvements

5 (2018-03-05)

  • show an indicator if the currently edited page is a 404 error page
  • minor code- & UI-improvements

4 (2018-03-05)

3.3 (2017-11-16)

  • support for right-to-left-languages added
  • faulty display in WP 4.9 fixed

3.2 (2017-10-05)

  • new feature to send an HTTP 410 error for deleted objects

3.1 (2017-07-24)

  • bugfix for Polylang (See Topic)
  • bugfix for CLI (See Topic)
  • add debug class to body tag
  • also add body classes for Customizr theme
  • do not add error404 class if already exists
  • further redesign admin interface

3.0 (2017-07-05)

  • new feature to force 404 error after loading page
  • new feature to disable URL autocorrection guessing
  • finally removed Polylang stuff disabled in 2.4
  • redesigned admin interface
  • code improvement

2.5 (2017-05-19)

  • hide 404 page from search results on front end (if WPML is active, all languages are hidden)
  • do not fire a 404 in Compatibility Mode if the DW Question & Answer plugin by DesignWall is active and a question has no answers

2.4 (2017-03-08)

  • ensure that all core files are loaded properly (see topic)
  • Polylang Plugin erforder den Kampatibilitäts Modus nicht mehr zwingend (Siehe Topic)
  • alle Übersetzungen ausblenden wenn WPML installiert und „404 Seite nicht anzeigen “ aktiviert ist (danke an das Team von WPML für diesen Hinweis)
  • post status Problem gelöst (Siehe Topic)
  • Enfold Theme Problem gelöst (danke an das Team von Kriesi.at für die Unterstützung)

2.3 (2016-11-21)

  • a few minor bugfixes solve some problems with page templates in certain combinations

2.2 (2016-09-26)

  • automatic switch to Compatibility Mode for several plugins removed
  • enhanced support for WPML and Polylang
  • remove the 404 page from search results (for all languages if WPML or Polylang is used)
  • remove the 404 page from sitemap or other page lists (for all languages if WPML or Polylang is used)
  • bugfix for author archives
  • confusing admin message removed

2.1 (2016-04-22)

  • Einführung der auswählbaren Funktionsweise
  • mehrere Änderungen am Kompatibilitäts Modus für verbesserte WPML und bbPress Kompatibilität sowie Kompatibilität mit Page Builder by SiteOrigin
  • Polylang Kompatibilität
  • automatische Umstellung in den Kompatibilitätsmodus wenn WPML, bbPress, Polylang oder Page Builder von SiteOrigin entdeckt wird
  • komplett neuer Customizr Kompatiblitäts Modus (wird automatisch aktiviert wenn das Customizr Theme erkannt wird)
  • Das Abfeuern eines 404-Fehlers anstatt die 404 Felherseite direkt aufzurufen kann jetzt deaktiviert werden
  • WP Super Cache Unterstützung
  • Option zum Verbergen der 404 Fehlerseite in der Seitenübersicht
  • 404 Fehlertest
  • Erweiterbarkeit des Plugins
  • Löschen aller Einstellungen beim Löschen des Plugins

2.0 (2016-03-08)

  • WPML Kompatibilität
  • bbPress Kompatibilität
  • Customizr Kompatibilität
  • direkter Aufruf der 404 Fehlerseite erzeugt nun einen 404 Fehlercode
  • Klasse error404 wird nun zu den CSS Klassen im HTML body Element hinzugefügt
  • Menüeintrag von ‚Einstellungen‘ nach ‚Design‘ verschoben
  • Übersetzungsdateien entfernt, es wird ausschließlich GlotPress verwendet

1.4 (2015-08-07)

  • Direkte Bearbeitung der 404 Seite von den Einstellungen aus
  • Portugiesische Übersetzung

1.3 (2015-01-12)

  • Technische Verbesserungen (als Klasse neu geschrieben)
  • Kosmetik

1.2 (2014-07-28)

  • Spanische Übersetzung
  • Serbo-Kroatische Übersetzung

1.1 (2014-06-03)

  • Unterstützung für Mehrsprachigkeit
  • Deutsche Übersetzung

1.0 (2013-09-30)

  • Erste Version