How do I move an installation from a subfolder to the root?

Permalink
I have a client who wanted us originally to install Concrete in a folder, so the URL would be techwerks.tv/site2012

Now, they've changed their minds and want the install at the root level. Is there an easy way to accomplish this without having to do a new install and export/import the database?

1db
 
CygnetMidwest replied on at Permalink Reply
CygnetMidwest
I believe you should be able to simply move the contents of site2012 to the root via FTP. No reason to create a new database. The config settings for the database would remain the same.

After you move the files, be sure to update the site location in the Dashboard (from techwerks.tv/site2012 to techwerks.tv).
globalnerds replied on at Permalink Reply
globalnerds
Yes, you need to do two things:

move all of the files from the directory /site2012 to / and then go into

/confg and edit site.php

you will need to change the following:

define('DIR_REL', '/site2012');

to

define('DIR_REL', '');

Note that the slash is gone as well and it just leaves two single quotes (not one double quote) without a space.

Always a good idea to back up before you do anything.

You will not need to change anything within your database.

If you have any questions, PM me.
1db replied on at Permalink Reply
1db
Um...there is no such line in site.php. I assume it's not a required parameter (if that's the word). Do I just add it?
michaelbard replied on at Permalink Reply
I am about to do the same thing. Did this work?
michaelbard replied on at Permalink Reply
I am about to do the same thing. did it work?
michaelbard replied on at Permalink Reply
I am about to do the same thing. Did this work?