Want to move existing C5 to subdomain and install new C5 theme on main domain

Permalink
The subject sort of speaks for itself. I have a C5 site built on my main domain right now. I want to move that site to a subdomain and then install a different C5 theme on the main domain and build that site up. I'm kind of new to this so I'll need some pretty detailed instructions or a good video.

Aside from that, I do have another question: Once the site has been moved to a subdomain, will the existing pages and everything work with it? For example my orginal site would have a page domain.com/page. Then I moved that site to the subdomain. Will that page be located at sub.domain.com/page? Or does it not work like that? Thanks for the help!

bkeschhh
 
pvernaglia replied on at Permalink Reply
pvernaglia
Just copy all the files and folders you have for your domain into the folder that is for the sub domian, when you log into the site on the sub domain clear the cache and it should all be good. When you setup your new installation make a new databse.
bkeschhh replied on at Permalink Reply
bkeschhh
Okay seems easy enough. How will the old site, after being moved to the subdomain, still know to connect to the original database? And how will the new site know to connect with the new database?
mhawke replied on at Permalink Reply
mhawke
Just a quick question... regular visitors will land on your new site rather than your existing site. Is that what you want? Normally, a new version/theme is built on the sub-domain so you have time to build it out before making it public.
bkeschhh replied on at Permalink Reply
bkeschhh
Yes that's fine. It's a portfolio site so people really only look at it if I send it to them.
pvernaglia replied on at Permalink Reply
pvernaglia
The database is already configures in config/site.php, if you move your installation in your root to a sub domain it will continue to work. If you install a new version of C5 in your root, just configure a new db during installation
bkeschhh replied on at Permalink Reply
bkeschhh
Okay so when I reinstall C5 on the root again, it will create a new config/site.php for me? Or will I have to create a that and link the new database to it?
mhawke replied on at Permalink Reply
mhawke
Yes, it will be created as part of the installation process. Just create a new, blank database and enter those credentials in the installation screens and the site.php file will be created with that new info.
bkeschhh replied on at Permalink Reply
bkeschhh
Thanks so much!