Transfering C5 sites

Permalink 1 user found helpful
If I have a C5 site already built on my server and need to transfer it to another server/domain. Does anyone know how I would go about doing this.

I have already tried copying the database tables to the new server then uploading all the files from site to the new domain. Then went into the site.php file and switched the database login info.

is there any other php files or anything in the database i would need to change. Or is there and easier way of doing this all together. I am somewhat new to working a CMS so any help would be much appreciated.

Thanks,
Paul Wood

PaulWood
 
andrew replied on at Permalink Reply
andrew
Everything else should be fine - just change the items in config/site.php like you did. You'll also probably need to change BASE_URL in site.php, and if your site isn't living at the base of your domain, you'll need to add it that relative path to DIR_REL in config/site.php as well.

So if you site used to live athttp://localhost/ it probably looks like this in config/site.php

define('BASE_URL', 'http://localhost');
define('DIR_REL', '');

And if you were moving it tohttp://www.mynewserver.com/new/sub/path/... you'd have

define('BASE_URL', 'http://www.mynewserver.com');
define('DIR_REL', '/new/sub/path');

does that make sense?
PaulWood replied on at Permalink Reply
PaulWood
Thanks, I think i figured it out.