In such a case your server needs the RewriteBase option to be set. Open the. htaccess file in the main directory and add the pursuing line to it: RewriteBase / The .htaccess should be like this:
Options +FollowSymLinks
Options -Indexes
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\.php|assets|images|css|js|install|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L,QSA]
RewriteBase /
If you have installed the application into a sub folder you need to add the sub folder name after the / The .htaccess file should look like this in this case:
Options +FollowSymLinks
Options -Indexes
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\.php|assets|images|css|js|install|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L,QSA]
RewriteBase /your_sub_folder/
please take a look at these questions for more :
http://stackoverflow.com/questions/6118740/codeigniter-no-input-file-specified
http://stackoverflow.com/questions/14555996/no-input-file-specified
you need to change the .htaccess to be like this:
<IfModule mod_rewrite.c>
Options +FollowSymLinks
Options -Indexes
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]
</IfModule>
please take a look at these questions for more :
http://stackoverflow.com/questions/6118740/codeigniter-no-input-file-specified
http://stackoverflow.com/questions/14555996/no-input-file-specified
in this case please check the "application\config\database.php" and make sure the database information are right