-
$router = new Phalcon\Mvc\Router(false);
$router->removeExtraSlashes(true);
$router->add('/', array(
'controller' => 'index',
'action' => 'index'
));
$router->notFound(array(
'controller' => 'index',
'action' => 'page404'
));
$router->add('/index', array(
'controller' => 'index',
'action' => 'index'
));
return $router;
When accessing application without any route (https://localhost/myapp/) it shows notFound page (other routes work fine). If I use virtual host - everything works as expected. Any thoughts about that?