[removed] location.href='http://localhost/myweb/index.php';
$this->load->helper('url'); redirect('controller/method');