[Error] CodeIgniter on GoDaddy

When you are using GoDaddy hosting you can get errors with CodeIgniter framework URLs and routers.

After research I did following configuration, and everything is working fine for me.
First I have changet this valiables in /application/config/config.php

$config['base_url'] = 'http://example.com/';
$config['index_page'] = 'index.php?';
$config['uri_protocol'] = 'REQUEST_URI';

Then I have created /.htaccess file and wrote in:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?$1 [L]

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.