• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Remove Controller

#1
I have to remove controller name from the URL in CodeIgniter for my website but my others controller is not working .
its showing this message " The page you requested was not found ".

I used following code for remove my website controller name from routers.php:

$default_controller = "webportal";
$route['default_controller'] = $default_controller;
$controller_exceptions = array('admin','email');

$route['default_controller'] = $default_controller;
$route["^((?!\b".implode('\b|\b', $controller_exceptions)."\b).*)$"] = $default_controller.'/$1';
$route['404_override'] = '';
Reply


Messages In This Thread
Remove Controller - by kavy - 02-27-2015, 09:37 PM
RE: Remove Controller - by ngangchill - 02-28-2015, 03:33 AM
RE: Remove Controller - by janesmith - 03-03-2015, 03:33 AM
RE: Remove Controller - by John_Betong - 03-20-2015, 01:07 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.