shortURL

Version:
4.0
Entwicklungsstatus:
Stable
Veröffentlichungsdatum:
2017/01/01
Lizenz:
GPL
Autoren:
dev4me
Sprache für Beschreibung:
EN | DE
Beschreibung EN:
shortURL removes the /pages/ and the .php from the URL.
This is not a module but a combination of a php script, a customized .htaccess and a droplet.
Please unzip it locally and
  • copy the short.php into the root of your website (where the config.php is situated)
  • copy the .htaccess into the root of your website or write the content of the .htaccess from the package on top of an existing .htaccess
  • create a new droplet named shorturl with the contents of droplet.txt
  • call the droplet in your template with (no blanks there, they are used here only for display) - just add the call above the < /body > tag
For WBCE <= 1.3.3, the droplet call is mandantory. Some modules, e.g. forms, won't work properly and the menu would display the old URLs otherwise. In WBCE 1.4.0 the shortURL output filter has to be activated instead of th droplet call.
Beschreibung DE:
Mit shortURL kann das /pages/ und die Endung .php aus der URL entfernt werden.

Der Download ist kein Modul, sondern ein Archiv mit 3 Dateien, die wie folgt anzuwenden sind:
  • die short.php ins Wurzelverzeichnis der Website kopieren (da, wo auch die config.php liegt)
  • die .htaccess ebenfalls dorthin kopieren, oder, falls dort bereits eine .htaccess liegt, den Inhalt der shotrURL-.htaccess am Beginn der vorhandenen .htaccess einfügen
  • Ein Droplet anlegen mit dem Namen shortURL und in dieses den Inhalt aus der droplet.txt einfügen
  • Das Droplet mit im Frontend-Template aufrufen (keine Leerzeichen in den eckigen Klammern, das ist nur hier zur Anzeige so) - am besten direkt vor dem schließenden< /body > -Tag einfügen
Für WBCE <= 1.3.3 ist der Droplet-Aufruf ist zwingend erforderlich, da sonst verschiedene Module (z.B. Formulare) nicht funktionieren und in der Navigation immer noch die "langen" URLs erscheinen. In WBCE 1.4.0 sollte der Dropletaufruf durch die Aktivierung der shortURL-Filters im OPF-Dashboard ersetzt werden.

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