Welcome Guest, Not a member yet? Register   Sign In
Changing domain names
#1

[eluser]msteudel[/eluser]
Hi all,

I'm migrating my dev environment up to the "live-dev" server, which has a different domain name than my local dev environemnt.

I've setup a switch statement in my config file to automatically handle the domain name changes:

e.g.
Code:
switch( $_SERVER['HTTP_HOST'] ) {
    case "domain.com":
    $url = 'http://domain.com/';
    break;
    case "dev.live-domain.com":
    $url = 'http://dev.live-domain.com/';
    break;
}

But I'm getting 404 when I try and hit my controller. Though I do get the codeingniter 404 page, vs just a regular 404 page. I can also access some of my static assets:

e.g. dev.live-domain.com/css/styles.css returns my file.

I'm hosting the live dev server on go-daddy.

Thanks, Mark


Messages In This Thread
Changing domain names - by El Forum - 03-18-2010, 09:30 AM
Changing domain names - by El Forum - 03-18-2010, 09:37 AM
Changing domain names - by El Forum - 03-18-2010, 09:41 AM
Changing domain names - by El Forum - 03-18-2010, 10:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB