Moving Concrete5 to a subfolder on same server

Permalink
Hi, I'm fairly new to Concrete5 but I have coding experience. I'm having a problem with moving my concrete5 created website.

I'm designing the website in a subfolder on my website so that once I get it all right I can move it to the root folder and replace my existing quite old html website.

I'm nearly finished designing so I thought I'd test out the moving of the website to a different folder just to see how easy or difficult it is.

So here's what I have:

Current folder:
/concrete5/

New (test folder):
/concrete5test/concrete5/

I've copied all the files from the current folder to the new test folder - took hours using an ftp client - but it's copied over.

I then read that I need to edit the .htaccess file.

<IfModule mod_rewrite.c>
   RewriteEngine On
   RewriteBase /concrete5test/concrete5/
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{REQUEST_FILENAME}/index.html !-f
   RewriteCond %{REQUEST_FILENAME}/index.php !-f
   RewriteRule . index.php [L]
</IfModule>


But I still get this error when trying to access the new site at the address /concrete5test/concrete5/index.php

An unexpected error occurred.
Class 'Concrete\Core\Cache\Page\PageCache' not found

Can anyone point me in the correct direction....

Must be something simple that I haven't done.

 
radeff replied on at Permalink Reply
radeff
the procedure is ok but did you made an "empty cache" before?
after?
it may be as simple as that...
Petersewell replied on at Permalink Reply
Hi, I didn't make an empty cache before I copied the concrete folder over to it's test destination. I did wonder if this was the case. I can't log in to the new site to clear the cache as it gives that error message whenever I try to access it.

I'll do the whole copy again after I clear cache on the existing site first.

So you think that everything I've done is correct?

1. Clear Cache
2. Copy complete folder to new folder
3. Edit .htaccess file with the new directory of the concrete5 folder
ConcreteOwl replied on at Permalink Best Answer Reply
ConcreteOwl
Don't ftp the files individually, some files need to be ftp'd in binary mode..
Instead you should create a zip archive of the site folders and files, ftp the archive to the new location and then extract it in that location and then adjust your .htaccess file accordingly.
Petersewell replied on at Permalink Reply
Thank you.

I will try this now.
Petersewell replied on at Permalink Reply
Hi, I did what you suggested and made a ZIP file of the whole concrete5 folder and then got the ftp server to unzip it and it worked.

Thank you.
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
You are most welcome..