Move to root directory

Permalink
Just wandering what I need to do to move my site from a sub directory into the root directory. If I can't not a big deal I can always do a redirect in the c-panel.

 
Eagletears replied on at Permalink Reply
Just simply copy the files to another location and go into the config directory / site.php - change
define('DIR_REL', '/directory')

to example:

define('DIR_REL', '/site')

upload the site.php and your done.

Coool
tgadams11 replied on at Permalink Reply
tgadams11
Wish it was this easy... I moved my Concrete based website from the sub-directory into the root... I changed this setting in the site.php file as mentioned and when tried to load the site, it's not finding the Theme I guess... It's loading pieces but all broken up with no Theme applied to it...

So what's the deal?

The site.php has this in it:

<?php
define('DB_SERVER', 'XXXXXX');
define('DB_USERNAME', 'XXXXX');
define('DB_PASSWORD', 'XXXXXX');
define('DB_DATABASE', 'XXXXXX');
define('DIR_REL', '/site');
define('PASSWORD_SALT', 'XXXX');

I changed out the correct info with "XXXX" for security reasons...

Any help would be appreciated. tga
mhawke replied on at Permalink Reply
mhawke
Try clearing all the caches, C5 and your browser(s)
tgadams11 replied on at Permalink Reply
tgadams11
Don't mean to sound clueless but how does one clear the cache in C5? Is there a cache folder in the Concrete site to empty out?

TIA
ScottSandbakken replied on at Permalink Reply
ScottSandbakken
Dashboard > System & Settings > Optimization > Clear Cache
tgadams11 replied on at Permalink Reply
tgadams11
Thanks for the insight.... I'll give this all a go and see how it goes... tga
mhawke replied on at Permalink Reply
mhawke
While you're in the 'Optimization' area, turn off all your caching while you're developing your site.
tgadams11 replied on at Permalink Reply 1 Attachment
tgadams11
Thanks for the additional info.... However, I do not have access to the areas I need due to the "brokenness" of the display... How may I gain access to the Dashboard in this case?

Attached is a screen shot of what I'm seeing currently.

Thanks
mhawke replied on at Permalink Reply
mhawke
Put this in your address bar of your browser:

http://www.your-site.com/index.php/dashboard


or to get directly to the 'clear cache' page:

http://www.your-site.com/index.php/dashboard/system/optimization/clear_cache/


(replace 'your-site' with your site name.)
tgadams11 replied on at Permalink Reply
tgadams11
thanks for the additional information... however, when trying to access the Dashboard and all with how you mentioned... I am running into the following error when trying to log into the site... I tried it at work earlier today and got the same thing... Waited until I got home again just to make sure that I wasn't getting my login wrong... same thing...

Not Found

The requested URL /site/index.php/login/do_login/ was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Any ideas what the deal might be? Thanks.
mhawke replied on at Permalink Reply
mhawke
I just re-read the thread and I'm concerned with the contents of your site.php. The DIR_REL constant is used to assign the website to a sub-directory. Since you have moved your site from a sub to the root, you shouldn't need this anymore.

If this line is still in your site.php, remove it:
define('DIR_REL', '/site');
tgadams11 replied on at Permalink Reply
tgadams11
Thanks to everyone for the guidance and help... I'm still a little new to Concrete but getting the hang of it....

Removing that line work!!! The site is now loading correctly... Woohoo!!

Appreciate it!