diff --git a/application/controllers/UserController.php b/application/controllers/UserController.php new file mode 100644 index 00000000..6d64f844 --- /dev/null +++ b/application/controllers/UserController.php @@ -0,0 +1,28 @@ +getRequest()->getUrl(); + $url->setPath(preg_replace( + '~^icingadb/user(?=/|$)~', + 'icingadb/contact', + $url->getPath() + )); + + $this->getResponse() + ->setHttpResponseCode(301) + ->setHeader('Location', $url->getAbsoluteUrl()) + ->sendResponse(); + } +}