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