Amar Banerjee
Amar Banerjee

Reputation: 5012

Url is not working properly in codeigniter giving error "No input file specified".

I uploaded my codeigniter application to a demo server. The Home page is opening fine, but other pages are giving error.

I changed the base url in my config file to:

$config['base_url'] = 'http://globalcfos.com/cfoask/';

It is working fine locally. Any idea how to fix it?

Upvotes: 4

Views: 2624

Answers (1)

Ryan
Ryan

Reputation: 1338

Looks like you're hosted on GoDaddy, having bumped into the same issue before, changing your .htaccess file to the below should fix it.

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php?/$1 

See http://ellislab.com/forums/viewthread/77847/

Upvotes: 5

Related Questions