Welcome Guest, Not a member yet? Register   Sign In
Codeigniter and GoDaddy Hosting
#1

[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.
#2

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

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

InsiteFX
#3

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

[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 ?
#5

[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.
#6

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




Theme © iAndrew 2016 - Forum software by © MyBB