CodeIgniter Forums
Codeigniter and GoDaddy Hosting - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Codeigniter and GoDaddy Hosting (/showthread.php?tid=35471)



Codeigniter and GoDaddy Hosting - El Forum - 10-30-2010

[eluser]FabienO[/eluser]
I know there's already threads on this, and trust me I have read/tried every one of them. I have also looked at http://codeigniter.com/wiki/Godaddy_Installaton_Tips/ too. But I am still getting a 404. One thing to note I am not using the site's root I am using www.FabienO.com/wb/<codeigniter here>. Dunno how this affects it, I have also tried it all on the sites root, but can't get past the 404.

Can anyone help me go my site working in GoDaddy hosting?

Code:
.htaccess

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

$root = "http://".$_SERVER['HTTP_HOST'];
$root .= str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']);
$config['base_url']    = "$root";

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


What else can I do? Any help would be greatly appreciated. This works perfectly fine in XAMPP btw.


Codeigniter and GoDaddy Hosting - El Forum - 10-30-2010

[eluser]InsiteFX[/eluser]
Code:
// this is wrong!
$config['base_url'] = "$root";

// should be
$config['base_url'] = $root;

InsiteFX


Codeigniter and GoDaddy Hosting - El Forum - 10-30-2010

[eluser]FabienO[/eluser]
Changed. Not fixed unfortunately. TY though.


Codeigniter and GoDaddy Hosting - El Forum - 10-30-2010

[eluser]Pascal Kriete[/eluser]
And what is the name of one of your controllers? Can you get to it using /wb/index.php?<whatever>/index ?


Codeigniter and GoDaddy Hosting - El Forum - 10-31-2010

[eluser]FabienO[/eluser]
I can get all controllers except my default one to work. Which is

http://www.fabieno.com/wb/index.php?blog/ <--Doesn't work
http://www.fabieno.com/wb/index.php?WeddingInformation/ <--- does.


Codeigniter and GoDaddy Hosting - El Forum - 10-31-2010

[eluser]FabienO[/eluser]
I got it working. Case sensitivities. Stupid on my part, but it didn't matter in XAMPP. Thanks guys!