HostGator and CodeIgniter: How to fix mod_rewrite

by Eric on September 2, 2009

hg_ciI came across this problem today. I just purchased a HostGator Baby account. I got everything installed, and CodeIgniter will pull up a home page, but any other page redirects to the home page.

After a little digging, I discovered a solution. You just have to open your /application/config/config.php file and replace this…

$config['uri_protocol'] = "AUTO";

with this…

$config['uri_protocol'] = "REQUEST_URI";

I hope that helps someone out!

Related posts:

  1. CodeIgniter and GoDaddy Hosting Issues

Leave a Comment

Previous post: PHP code for a WebBug (or Clear GIF) Email Tracking Solution

Next post: Web App Spotlight: Grasshopper.com