Remove Html Extension From Url

I’m trying to remove the “.html” extension from my user profile urls with just an action of urlSuffix deletion.


'profile/<username:\w+>/<aid:\w+>'=>array('/Users/profile/profile', 'urlSuffix'=>'.html')



But it turns out with Page Not Found error.

My .htaccess file just handles the index.php:

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php/$1 [L]

Does anybody have any ideas about this?