My project is not working in online (cpanel) "https://www.sample.com/folder"
But i give my url like this means working
"https://www.sample.com/folder/index.php/controller_name"
i want like "sample.com/folder/controller_name"
how to resolve this. I want my URL like above the first one
My Config file information
$config['index_page'] = '';
$config['uri_protocol'] = 'REQUEST_URI';
my Route file like this, Is here any Problem.
$route['default_controller'] = "pages/home";
$username = '(:any)';
$route['404_override'] = '';
$route['sample/([0-9]+)'] = "sample/index/$1";
$route['pages/profile'] = "pages/profile";
$route['pages/userList'] = "pages/userList";
$route['auth/logout'] = "auth/logout";
$route['auth'] = "auth/logout";
$route['auth/login'] = "auth/login";
$route['auth/register'] = "auth/register";
$route['pages/post'] = "pages/post";