You have to solve this problem without using routes. Saved default route record for pages:
Router::connect('/pages/*', array('controller' => 'pages', 'action' => 'display'));
and in action, the .html extension was removed on the screen and the corresponding view was displayed:
preg_replace('/\.html$/','',$view);
$this->render(null,'default',$view);
When invoking added pages, 'ext' will be .html
source
share