Why you need a page ending with
.htm on Codeigniter? You are working on Php
PHP Code:
public function index()
{
$this->load->view('YOUR_VIEW/home');
}
public function loginpg(){
$this->load->view('YOUR_VIEW/login');
}
}
?>
then in the route please try:
$route['the-url-on-the-browser(name-of-the-file-in-your-view)'] = 'welcome/-the-name-of-the-controller';