That is well documented in the cookbook.
UPDATE: http://book.cakephp.org/2.0/en/development/routing.html#file-extensions
To handle different file extensions with your routes, you need one
extra line in your routes config file:
Router::parseExtensions('html', 'rss');
If you want to create a URL such as /page/title-of-page.html you would
create your route as illustrated below:
Router::connect(
'/page/:title',
array('controller' => 'pages', 'action' => 'view'),
array(
'pass' => array('title')
)
);
Then to create links which map back to the routes simply use:
$this->Html->link(
'Link title',
array('controller' => 'pages', 'action' => 'view',
'title' => 'super-article', 'ext' => 'html')
);
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…