Codeigniter 500 error issue with Godaddy Hosting – Resolved

Godaddy hosting has got his own way of handling things. We need to work extra for running things smoothly on godaddy & Codeigniter is no exception to this.

I really use to ignore hosting my codeigniter projects on godaddy.

But finally , I got 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

READ  Reverse LinkedList {Loop implementation}

Leave a Reply

Your email address will not be published. Required fields are marked *