404 Page Redirect

Version:
1.4.3
Veröffentlichungsdatum:
2020/06/27
Lizenz:
GPL
Autoren:
dev4me, bernd
Sprache für Beschreibung:
EN | DE
Beschreibung EN:

The module will look at the requested url and tries to find an alternative page for it.
The alternatives are created by you. Just add words from the url to the table and select the correct page that should be shown.

To get it working:
  1. Create a hidden page with a "404 Page Redirect" section. (It's also useful to add a wysiwyg section too and put there the usual "sorry, not found, blah blah", since this page will be shown if no redirect was found.)
  2. Enter some parts of old URLs and choose the corresponding page
  3. Save your changes
  4. Via FTP: In the root of your WBCE installation (where the config.php is), create a .htaccess (if necessary; mind the dot as first character of the filename; .htaccess != htacess.txt) or, if there's already an existing one, add a 404 directive pointing to your 404 page. E.g. if your 404 page sits at yourdomain.com/pages/404, add the line
    ErrorDocument 404 /pages/404.php
    Attention: if you are using ShortURL, do not apply the changes to the .htaccess mentioned above, but edit the short.php as mentioned in the file, e.g. change the line
    define('ERROR_PAGE', '/'); 
    to
    define('ERROR_PAGE', '/404/'); 
Beschreibung DE:

Mit diesem Modul können fehlerhafte Anfragen (404 - Seite nicht gefunden) auf die richtigen Seiten umgelenkt werden.

Einrichtung:

 

  1. Eine neue versteckte Seite mit einem "404 Page Redirect"-Abschnitt anlegen. (Es ist sinnvoll, auch einen WYSIWYG-Abschnitt mit dem  üblichen "Seite nicht gefunden"-Blabla anzulegen, da diese Seite angezeigt wird, wenn keine passende Weiterleitung gefunden wird.)
  2. Nun einige Einträge anlegen, bei denen für Ausschnitte aus alten URLs Weiterleitungen auf die jeweiligen aktuellen Seiten eingerichtet werden.
  3. Änderungen speichern.
  4. Über FTP: Im Wurzelverzeichnis (da, wo die config.php liegt) entweder eine neue Datei .htaccess einrichten (Punkt als erstes Zeichen des Dateinamens beachten; .htaccess != htaccess.txt) oder in einer bestehenden eine 404-Weiterleitung auf die neue 404-Seite einrichten. Wenn die 404-Seite z.B. deinedomain.tld/pages/404.php heißt, so muss die Zeile lauten
    ErrorDocument 404 /pages/404.php
    Achtung: Wenn shortURL verwendet wird, nicht die o.g. 404-Anpassung vornehmen, sondern die short.php bearbeiten: In dieser Datei die Zeile
    define('ERROR_PAGE', '/'); 
    ändern zu
    define('ERROR_PAGE', '/404/'); 

Icons made by Pixel perfect (Puzzle) / Freepik (others) from www.flaticon.com is licensed by CC 3.0 BY