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
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
Thanks - that's it.
Is this the easiest way/best practices to develop site and then make live?
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);
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).
Then just upload your site and make it live (change the site.php).
also ollie, you don't even need to do that, you can delete the BASE_URL and DIR_REL lines,
Thanks Mnkras, would never have thought to approach it that way.
change this line
define('BASE_URL', 'http://newurl');