Skip to content

Instantly share code, notes, and snippets.

@HostOnNet
Created December 2, 2017 03:39
Show Gist options
  • Save HostOnNet/8d555157ca874691f4f8bf276be5b9ee to your computer and use it in GitHub Desktop.
Save HostOnNet/8d555157ca874691f4f8bf276be5b9ee to your computer and use it in GitHub Desktop.
Edited file
engine/Library/Enlight/Controller/Dispatcher/Default.php
On line number 448, added
$requestUrl = $_SERVER['REQUEST_URI'];
$requestUrlEnd = substr($requestUrl, -1);
if ($requestUrlEnd != "/") {
Header("Location: https://maxpots.eu" . $requestUrl . "/");
exit;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment