What is happening:-
 `testurl.com/index.php/controller/method` and `testurl.com/controller/method`, these both redirect to the same page that is index.php 
Requirement:- When somebody type `testurl.com/index.php/controller/method/` the url must be change to `testurl.com/controller/method` after loading the same page that is index.php

They are loading same page currently but the url is not getting change.

Codeigniter is new for me I know its very simple task, but I am blank at this point. Any help will be appreciated. Thanks in advance.