diff --git a/Controller/RedirectingController.php b/Controller/RedirectingController.php new file mode 100644 index 0000000..fbef5f4 --- /dev/null +++ b/Controller/RedirectingController.php @@ -0,0 +1,18 @@ +getPathInfo(); + $requestUri = $request->getRequestUri(); + + $url = str_replace($pathInfo, rtrim($pathInfo, ' /'), $requestUri); + return $this->redirect($url, 301); + } +} \ No newline at end of file