Hi everybody, I'm a beginner so it's possible that there is an obvious answer to my question. I have a problem with the following route, which should be matched for www.mydomain.com
'/' => array(
'params' => array(
'controller' => 'index',
'action' => 'redirectIndex',
),
'name' => 'redirect',
),
This is the corresponding index controller action
public function redirectIndexAction()
{
return $this->response->redirect('en/', 301);
}
Somehow the redirect to www.mydomain.com/en/ is not working. But the notFound action of the index controller is executed. What could be my mistake?
Many thanks, Max