Tuesday, April 5, 2016

Codeigniter godaddy hosting error - No input file specified.

Usually while developing any php applications using codeigniter framework, developers used to remove index.php from the codeigniter default url by using .htaccess file. And it will work perfectly in local machine. And after uploading all the codeigniter files in godaddy server, some times it wont work properly and it shows and error "No input file specified." To avoid this type of errors, we have added a htaccess file. Just check it and comment below.
Codeigniter godaddy hosting error - No input file specified
Codeigniter godaddy hosting error - No input file specified

How to overcome "No input file specified." godaddy codeigniter error ?

Here we have a solution,

Step 1
  1. Create a file in codeigniter main (root) folder.
  2. Copy paste below given codes
  3. Finally save it as .htaccess (without any name in front of .)
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]

Step 2
  1. Open application->config->config.php
  2. Find " $config['index_page'] " and " $config['uri_protocol'] " code from the config.php file and give the value as given below.
$config['index_page'] = '';
$config['uri_protocol'] = 'REQUEST_URI';

That's all, now your codeigniter application will run perfectly with godaddy hosting. If you have any queries, please comment below. We will help you as soon as possible.

Search tags:
codeigniter godaddy remove index php

codeigniter htaccess remove index php godaddy
codeigniter htaccess remove index.php not working
no input file specified codeigniter godaddy
no input file specified codeigniter htaccess
codeigniter mod_rewrite no input file specified

No comments:

Post a Comment