Sandbox site to live site

Permalink
Hello,

I have setup a sandbox site for a customer. Now I wish to make that site go live.

When setting up the site I used sandbox.domain.com. Now I wish to remove the sandbox from in front of the domain.

When I access domain.com I can access the site but the address in the url becomes sandbox.domain.com.

How can I get rid of the sandbox.

Hope this makes sense.

Bryan

 
olliephillips replied on at Permalink Reply
olliephillips
site.php will need altering. This file is in your "/config" directory

change this line

define('BASE_URL', 'http://newurl');
bmcguire replied on at Permalink Reply
Thanks - that's it.
walkerseo replied on at Permalink Reply
walkerseo
Is this the easiest way/best practices to develop site and then make live?
olliephillips replied on at Permalink Reply
olliephillips
Its fairly straightforward, but you can replace the constant value, with some PHP, that gets the domain your site is being called on. This way if your database parameters are the same in dev/test/production you don't have to worry about editing site.php

## Site specfic connection information
$accessDomain = $_SERVER['SERVER_NAME'];
define('BASE_URL', 'http://'.$accessDomain);
ThemeGuru replied on at Permalink Reply
ThemeGuru
Personally I only develop on my mac (localhost). It is so much easier to develop.

Then just upload your site and make it live (change the site.php).
Mnkras replied on at Permalink Reply
Mnkras
also ollie, you don't even need to do that, you can delete the BASE_URL and DIR_REL lines,
olliephillips replied on at Permalink Reply
olliephillips
Thanks Mnkras, would never have thought to approach it that way.