Redirect all pages

In application/config/routes.php

$route['default_controller'] = "front_controller";
$route['(:any)'] = $route['default_controller'];