I have the following url..
http://localhost/ci/site_controller/home
I want to remove site_controller controller
It's so simple if you want to remove the controller name from URL in the Codeigniter 3.x in my case URL was: http://localhost:8080/index.php/page/sometext Where "Page" is the controller name open application/config/routs.php
$urlParam = $this->uri->segment_array()[1];
$rout[$urlParam] = "page/index";
Result: http://localhost:8080/index.php/sometext
I assure you, it will work. tested 100%.