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?
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?
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.
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.
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?
I am about to do the same thing. Did this work?
I am about to do the same thing. did it work?
I am about to do the same thing. Did this work?
After you move the files, be sure to update the site location in the Dashboard (from techwerks.tv/site2012 to techwerks.tv).