

Codeigniter problem in Godaddy hosting is related to URI acess methods. If your Codeigniter application works fine in the localhost but throws 404 page not found error in the godady server than you need to manipulate the codeigniter URI acess methods. This article will help you to know about the URI information, problem with URI acess method and solution to resolve this issues in server like Godady.
What is URI ?
URI is an acronym for Uniform Resource Indentifier. Its a group of characters that contains the information about the server location, resource and the types of protocol used by the website. Web browser handles the specified URI on the basis of response received after the operating system Parses the string and descides the appropriate application to handle it.
There are various server global variables that stores the URI string information. Some of them are ‘PATH_INFO’, ‘QUERY_STRING’,'REQUEST_URI’,'ORIG_PATH_INFO’,'PHP_SELF’,'HTTP_REFERER’
If you are unknown about the types of global variable used by the server to store the URI information you can set the deterministic value to be AUTO.This helps to retrieve the information from the global variable that holds URI information automatically. But this feature is disabled in some of the server such as godaddy. Therefore web application and framework may encounter 404 page not found error, because the application or framework that uses the AUTO URI information retrievel setting, cannot retrieve the URI information, if its disabled.
To rectify this problem use Query_String, as a value for Server URI information retrieval method. In PHP you can use the following syntax :
$_SERVER['QUERY_STRING']
To manipulate this value in codeigniter set $config['uri_protocol'] = “AUTO “; as
$config['uri_protocol'] = “QUERY_STRING”
also the default homepage is set as index.php. This needs to be set as index.php? so the setting would be
$config['index_page'] = “index.php?”;
After manipulating these variable in the codeigniter config file . You need to manipulate the htacess file you have used the URL rewriting feature in the application.
1. Normal .HTACCESS that runs on localhost and most of the server for CI
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*).html$ index.php/$1 [L]
2. .HTACCESS to resolve CI problem in GODADDY for URL rewriting
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*).html$ index.php?/$1 [L]
May 3rd, 2010 at 10:10 am
hi guys…
hi guysI would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well and i have start my own blog now, , thanks for your effort…
July 1st, 2010 at 12:05 am
Buy:Ventolin.Cozaar.Buspar.Acomplia.Wellbutrin SR.Lipitor.Female Pink Viagra.Lasix.SleepWell.Zocor.Amoxicillin.Aricept.Prozac.Nymphomax.Female Cialis.Zetia.Advair.Benicar.Lipothin.Seroquel….
July 22nd, 2010 at 4:50 am
Buy:Wellbutrin SR.Female Pink Viagra.Lasix.SleepWell.Seroquel.Zetia.Advair.Cozaar.Lipothin.Female Cialis.Prozac.Nymphomax.Buspar.Ventolin.Aricept.Zocor.Lipitor.Benicar.Amoxicillin.Acomplia….