codeigniter broken link codeigniter broken link codeigniter codeigniter

codeigniter broken link


It looks like you have configured your application to remove /index.php/ from your URLs, but I suspect you have not included the .htaccess file to provide mod_rewrite support.

If you want to exclude /index.php/ from your URLs, make sure you follow everything in this tutorial.

Or, to get your site working ASAP, restore the default value of index_page in system/application/config/config.php to:

$config['index_page'] = "index.php";


I'd check 2 things first.

  1. Your base site url is properly configured to either the correct url or $config['base_url'] = 'http://'.$_SERVER['HTTP_HOST'];
  2. Your .htaccess file is properly configured and you have the mod_rewrite apache module installed.


You have to make sure the links are either relative to the path or use the base_url() function provided by the URL helper. See URL Helper.