![]() |
Changing domain names - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Changing domain names (/showthread.php?tid=28684) |
Changing domain names - El Forum - 03-18-2010 [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'] ) { 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 Changing domain names - El Forum - 03-18-2010 [eluser]danmontgomery[/eluser] Which config file? What's $url? Are you changing $config['base_url']? Changing domain names - El Forum - 03-18-2010 [eluser]msteudel[/eluser] Oops sorry Yes I'm changing the: system/application/config/config.php and changing the $config['base_ur'] value; Here's the rest that I missed: $config['base_url'] = $url; Another piece to the puzzle. If I change my local web environment to respond to the dev.live-domain.com it works just fine. So that leads me to believe that somehow it's a godaddy server setup issue. Changing domain names - El Forum - 03-18-2010 [eluser]danmontgomery[/eluser] That's possible... godaddy installations require some extra attention http://codeigniter.com/wiki/Godaddy_Installaton_Tips/ |