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