Part of the EllisLab Network
   
 
CI settings Godaddy (.htaccess)
Posted: 25 April 2008 07:00 AM   [ Ignore ]  
Grad Student
Rank
Total Posts:  47
Joined  07-13-2007

I will talk about common mistakes. (Please check godaddy for recent changes in their configuration)

In database.php make sure you put the proper host name (something like #####.secureserver.net) and other settings.

Now .htaccess

RewriteEngine On
RewriteBase 
/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond 
%{REQUEST_FILENAME} !-d
RewriteRule 
^(.*) index.php?/$

You are good to go. You see in last line I put extra “?” which is the only change that I had to make from my localhost .htaccess. And these settings has been tested with godaddy deluxe(linux) hosting.

I hope my experience will save someone’s time.

Profile
 
 
Posted: 19 July 2008 03:59 AM   [ Ignore ]   [ # 1 ]  
Summer Student
Total Posts:  14
Joined  04-03-2008

What is happen?

I also use CI on GodAddy hosting. But, it don’t works well. See: http://codeigniter.com/forums/viewthread/85559/

Profile
 
 
Posted: 13 October 2010 08:00 AM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  1
Joined  10-06-2010
Animas - 25 April 2008 11:00 AM

I will talk about common mistakes. (Please check godaddy for recent changes in their configuration)

In database.php make sure you put the proper host name (something like #####.secureserver.net) and other settings.

Now .htaccess

RewriteEngine On
RewriteBase 
/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond 
%{REQUEST_FILENAME} !-d
RewriteRule 
^(.*) index.php?/$

You are good to go. You see in last line I put extra “?” which is the only change that I had to make from my localhost .htaccess. And these settings has been tested with godaddy deluxe(linux) hosting.

I hope my experience will save someone’s time.


BRILLIANT ..... That worked !
After going through tons of htaccess, this is the one that did the trick for me,
Thanks a lot mate smile

Profile
 
 
Posted: 02 December 2010 01:36 AM   [ Ignore ]   [ # 3 ]  
Summer Student
Total Posts:  3
Joined  03-22-2007

Hosting with Dreamhost, removing the first ‘/’ and adding the ‘?’ after index.php in the last line worked for me as well (using the suggested .htaccess lines from the User Guide). Thanks for this!

Profile