How can I append .html to all my URLs in cakephp?
问题 I am using cakephp in one of my projects and my client wants the site URLs to end with .html and not the usual friendly urls. I was wondering if its possible in cakephp to do so through any of its routing techniques. Please help. 回答1: 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',