Struggling to follow steps to move from dev to live

Permalink
We have several C5 sites that we were able to develop in the live environment (new domains) and also several that are in development environments.

We need to move a site from it's dev sub domain environment (let's say dev.xyz.com) to the live environment (let's say xyz.com).

There are many forums and responses that we have found on moving from dev to live but are struggling to find one that fits our (I thought) fairly simple need.

I would appreciate it if someone could help point us in the right direction (even if that's to the post that is right for our situation).

The DB is Control Panel generated MySQL if that helps. Currently the live site is off server (old host) however we have control over the domain (DNS pointing to other IP for site for now).

Thanks in advance.
Brett...

BrettDashwood
 
s2d replied on at Permalink Reply
s2d
One thing that comes to mind when you're moving a site to a new path within the same domain - other than making sure all the files are kept in the same relationship to each other, path-wise - is to make sure the site and file path information contained in your /config/site.php file reflects the change.
JohntheFish replied on at Permalink Reply
JohntheFish
If dev.xyz.com and xyz.com are on the same server, its simply a matter of a few minor edits to config/site.php and .htaccess file, then pointing the domain at the folder the C5 site root is in. i.e. Leave the site where it is, and move the domain to it.
BrettDashwood replied on at Permalink Reply
BrettDashwood
Sounds great...excuse my ignorance, but would this also require changes to DNS records for email, ftp, and other sub domains etc.

If not, would you mind giving me an example of the changes you suggest should be able to happen? Thanks
BrettDashwood replied on at Permalink Reply
BrettDashwood
Sorry, should have opened the files first.

Opening site.php from the sub domains config folder, do I simply need to change:

define('BASE_URL', 'http://dev.xyz.com');

to be:

define('BASE_URL', 'http://xyz.com');

??

FYI, this is the contents of my .htaccess file

# -- concrete5 urls start --
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
# -- concrete5 urls end --

Does anything need to change here?

Do you feel I need to change anything else?

Thanks.
JohntheFish replied on at Permalink Reply
JohntheFish
Looks like you have the config/site and .htaccess sorted out (details can vary, so I wasn't more specific before).

For the domain, your web host provider account will have a control panel interface that (amongst other things) has a table mapping domains to directories.
programmieraffe replied on at Permalink Reply
programmieraffe
In the htaccess file you have to change the RewriteBase-Value if your new site is in a subfolder likehttp://livesite.com/mysite1/. If this is not the case you can use the htaccess file on all instances.

I have good experience with not setting the BASE_URL and DIR_REL value in site.php and let concrete5 autodetect it, but this depends on your server environment i think. Here is a quick&dirty description of my deployment steps:http://www.concrete5.org/community/forums/customizing_c5/local-to-l...