Why Vuju Design

The widest range of services offered by Vuju Design is cheap website design, web development, web hosting, logo design, joomla cms, graphic design, search engine optimization and promotion and a lot more solutions under one roof. We offer our clients a full spectrum of professional yet affordable web development and website design aiming at powerful and effective presentation at the World Wide Web.

Joomla

Outsourcing Website Design Solutions

Outsourcing Website Design Solutions
If you are a web development company, web design agency or small business web design firm, and want to outsource your web site design looking for web design company in Nepal, then you are at right place.... More

Free Web Design Quote

« How to resolve multiple login problem from the same account ID using php ?   |   What is Web Content Management System(CMS)? »

Codeigniter problem in Godaddy hosting

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]

This entry was posted on Sunday, July 27th, 2008 at 1:05 pm and is filed under Solution. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

3 Responses to “Codeigniter problem in Godaddy hosting”

  1. to domain name Says:

    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…

  2. ANTONIO Says:


    Pillspot.org. Canadian Health&Care.Special Internet Prices.Best quality drugs.No prescription online pharmacy. No prescription pills. Order pills online

    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….

  3. CARL Says:


    MedicamentSpot.com. Canadian Health&Care.No prescription online pharmacy.Special Internet Prices.Best quality drugs. Online Pharmacy. Buy pills online

    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….



Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word