Eg:how to remove index.php from the below url ?
http://localhost/hello/index.php/usernamevalidation/validateme
after removing the index.php url will be look like as below
http://localhost/hello/usernamevalidation/validateme
For removing the index.php follow the following steps
open the config.php php in config folder make the changes as below
$config[‘index_page’] = “”;
$config[‘uri_protocol’] = “REQUEST_URI”
and create an .htaccess file and add the below code
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]