Reputation: 189
How to fix my problem for an existing website converted to a cakephp application. The previous website has *.htm extensions. Is this something what needs to be done in the .htaccess file? The problem is that the website is of course in many search engines with having the *.htm extension, I want to avoid problems like page not found.
Example: www.domain.com/foodhabbits.htm is now in cakephp application www.domain.com/foodhabbits
Upvotes: 1
Views: 190
Reputation: 9964
You could add Router::parseExtensions('htm');
to your app/Config/routes.php
file. The router will then remove the "htm" file extension and parse what remains, see also http://book.cakephp.org/2.0/en/development/routing.html#file-extensions
Upvotes: 1