Godaddy Installation Tips

#1
[eluser]conekt[/eluser]
Thank you to everyone who's posted on Godaddy installation issues.

Having just struggled with this issue myself, this seems to be the shortest path to proper performance on Godaddy. This is entirely based on other people's posts but, I didn't really see this all in one place so I thought I do just that.

In config.php:
Code:
$config['index_page'] = "index.php?";
$config['uri_protocol'] = "QUERY_STRING";

You should now be able to access everything as such:
Code:
http://yourdomain.com/index.php?controller/action/etc

Once you get to a point where you want to hide the 'index.php?' paste this into your .htaccess file:

Code:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?$1 [L]

You should now be able to access everything as such:
Code:
http://yourdomain.com/controller/action/etc

Hope this is helpful.

#2
[eluser]Michael Wales[/eluser]
You should definitely post this into the Wiki - much more "stable" there and likely to be found easier. It will fall of the forums front-page in 2-3 days and people never use the search function, so it may never get seen again.

Definitely helpful information for anyone hosting on GoDaddy.

#3
[eluser]conekt[/eluser]
[quote author="walesmd" date="1189797104"]You should definitely post this into the Wiki - much more "stable" there and likely to be found easier. It will fall of the forums front-page in 2-3 days and people never use the search function, so it may never get seen again.

Definitely helpful information for anyone hosting on GoDaddy.[/quote]

Done.
http://codeigniter.com/wiki/Godaddy_Installaton_Tips/

Thanks for the feedback.

#4
[eluser]JeffreyRopp[/eluser]
Hello everyone! Another newbie here....

I'll add one more comment some folks might find useful.

I'm running CI in a subdirectory: http://www.cellphoneservicereport.com/ConcertSherpa/

My config.php includes:
Code:
$config['index_page'] = "index.php?";
$config['uri_protocol']    = "QUERY_STRING";

My .htaccess file:
Code:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1 [L]

Note the difference in the RewriteRule line.

Best,
Jeff

#5
[eluser]conekt[/eluser]
[quote author="JeffreyRopp" date="1197166093"]Hello everyone! Another newbie here....

I'll add one more comment some folks might find useful.

I'm running CI in a subdirectory: http://www.cellphoneservicereport.com/ConcertSherpa/

My config.php includes:
Code:
$config['index_page'] = "index.php?";
$config['uri_protocol']    = "QUERY_STRING";

My .htaccess file:
Code:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1 [L]

Note the difference in the RewriteRule line.

Best,
Jeff[/quote]

Good call Jeff.

Here's a wiki entry that I created based on my original post.
http://codeigniter.com/wiki/Godaddy_Installaton_Tips/

Please feel free to append your info to it.

#6
[eluser]llbbl[/eluser]
Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

or

Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|public|user_guide|robots\.txt)
RewriteRule ^(.*)$ /index.php?/$1 [L]

May also work for you.

http://ellislab.com/forums/viewthread/55620/

#7
[eluser]llbbl[/eluser]
ok so. This page on EE wiki explains in more detail about the different options that programmers have at solving this issue. EE is built off CI and so faces a similar problem in this regard.


http://expressionengine.com/wiki/Remove_...From_URLs/

#8
[eluser]CartmanLee[/eluser]
Hello everyone. Here's one more newbie.

I followed your instructions, but after using them, I'm getting CI 404 error page every time when I'm calling URL in format

http://yourdomain.com/index.php?controller/action/etc
http://yourdomain.com/controller/action/etc

Again, only main page works properly Sad

#9
[eluser]CartmanLee[/eluser]
Sorry, guys. I located the problem. I was convinced that controller filenames must be always written with lowercases. Sorry for the disturbance Wink

CI rulezz Wink


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.