Quantcast
Viewing all articles
Browse latest Browse all 62

CodeIgniter Problems with 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]

Viewing all articles
Browse latest Browse all 62

Trending Articles