Godaddy hosting has got its’ own way of handling things. We need to work extra hard for running things smoothly on Godaddy & Codeigniter is no exception to this.
I really used to ignore hosting my codeigniter projects on godaddy.
But finally , I figured out the way of running Codeigniter on Godaddy.
Write the below code in your htaccess file.
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php?/$0 [PT,L]
and make the below changes in your config.php file which is in application/config folder.
$config[‘index_page’] = ‘index.php’;
$config[‘uri_protocol’] = ‘AUTO’;
$config[‘url_suffix’] = ”;
Hope this will help someone