Url does not work properly in codeigniter, giving the error "No input file specified".

I downloaded the codeigniter application to the demo server. The main page opens normally, but other pages give error .

I changed the base url in my configuration file to:

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

It works fine locally. Any idea how to fix this?

+4
source share
1 answer

It looks like you are hosted on GoDaddy, faced with the same issue, changing the .htaccess file to a subordinate one, fix it.

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

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

+5
source

Source: https://habr.com/ru/post/1485852/


All Articles