Changing domain names |
[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
[eluser]danmontgomery[/eluser]
Which config file? What's $url? Are you changing $config['base_url']?
[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.
[eluser]danmontgomery[/eluser]
That's possible... godaddy installations require some extra attention http://codeigniter.com/wiki/Godaddy_Installaton_Tips/ |
Welcome Guest, Not a member yet? Register Sign In |