Changing root folder name

Permalink
Hello

Client has just asked to have folder name changed in directory so that the URL will be different.

How do I go about doing this so that it updates across the site and doesn't have any configuration issues?

bottlefedbaby
 
keeasti replied on at Permalink Reply
keeasti
Can you give more details?
bottlefedbaby replied on at Permalink Reply
bottlefedbaby
I have a website,http://www.driftwoodnz.com which is running on C5, and I have now added a new subfolder called "driftwoodcentral" and that has its own copy if C5 running with it's own database.

I need to change the name "driftwoodcentral" to something else, which will change what the URL will be, but when I tried to do this none of the pages I have set up under "driftwoodcentral/example-page worked off the navigation any more. You could still access them via the sitemap.

So I just need to know how to go about renaming "driftwoodcentral" so that it updates across the site and on all the pages under it accordingly

Thanks for your help

Sent from my iPad

> On 16/02/2014, at 2:26 am, concrete5 Community <discussions@concretecms.com> wrote:
core77 replied on at Permalink Reply
Make backups.
Rename driftwoodcentral to driftwoodcentral-newname.
Then change the path to the concrete5 directory in /driftwoodcentral-newname/config/site.php
bottlefedbaby replied on at Permalink Reply
bottlefedbaby
Am I missing something...

The site.php file has

DB_SERVER
DB_USERNAME
DB_PASSWORD
DB_DATABASE
PASSWORD_SALT

I cant see anything in there to change the URL path?
keeasti replied on at Permalink Reply
keeasti
That's what I meant about newer versions of C5 not having those lines.
Can we take a look at the new folder you have set up? ... it should show what the nav is getting up to. At the moment, it is asking for a login.
Did you also see my point about the htaccess file and pretty URLs?
bottlefedbaby replied on at Permalink Reply 3 Attachments
bottlefedbaby
I did see this point, thank you.

This is the folder structure (see attached).

http://www.driftwoodnz.com and then a subfolder called driftwoodcentral which now has its own copy of C5, so you can go towww.www.driftwoodnz.com/driftwoodcentral/... and then see a whole new site.

When I login to my webhost I can't even see the subfolder within my http folder, but I can see it on Cyber Duck - that's strange, right?

This is how it looks on my webhost (see attached)

And this is how the htaccess file looks

I appreciate your help.
keeasti replied on at Permalink Reply
keeasti
Something is a bit odd here ... the (Plesk?) control panel / file manager seems to be showing the contents for driftwoodcentral.co.nz and not driftwoodnz.com.

The htaccess file you show is in fact from driftwoodcentral.co.nz and not from driftwoodnz.com/driftwoodcentral/ which should have its own one (if there is one).

Are you sure you are looking in the right place and/or have uploaded the files to the right place?

You can PM me if you like.
bottlefedbaby replied on at Permalink Reply 1 Attachment
bottlefedbaby
oh my goodness, what a stupid mistake. I was totally looking at the wrong hosting plan.

This is the htaccess file of the correct (my bad before!)

I will try again and see how I get on, and if I have any problems I will PM you.

Thanks for your help :)
keeasti replied on at Permalink Reply
keeasti
No worries :)

There seems to be an extra httpdocs in the path there but not in the htaccess file... although that might be just the way the filemanager is showing it.

You could try to FTP in to get a better idea. The curious thing you said is that the sitemap works so perhaps there is something wrong with the navigation (autonav?)

As I said before, if one could look at your actual test site then it should become more clear.
keeasti replied on at Permalink Reply
keeasti
you may also have to edit the .htaccess file if you have pretty URLs turned on
have a look here:
https://www.concrete5.org/community/forums/documentation_efforts/mov...

edit
not even sure all installs of c5 have
define('BASE_URL', '');
define('DIR_REL', '');
in the configuration file by default
I found them in some older ones but not in C 5.6+ ones