Line 57 : Replace the current code there with ,
if($suffix = pathinfo($path, PATHINFO_EXTENSION))
{
$path = str_replace('.'.$suffix, '', $path);
$vars['format'] = $suffix;
if ($suffix == 'htm')
{
$path = str_replace('.'.$suffix, '', $path); //pair of single quotes inserted
$vars['format'] = 'html';
} else {
$path = str_replace('.'.$suffix, '', $path); //pair of single quotes inserted
$vars['format'] = $suffix;
}
}

Then goto line 101 : Replace the current code there with ,
if($format = $uri->getVar('format', 'html'))
{
$route .= '.htm';
$uri->delVar('format');
}

If you need the suffix to change from .html to .php , then just replace the .htm in the above code by .php and thats it..
if you are still not able to do it, then just download this ,
router.php file and upload it to includes folder.