Moving existing installation

Permalink
I've just about finished a site using C5. It was my first attempt using C5 so I created it as a hidden work in progress on the server (couldn't get wamp to work).

At the moment the site address ishttp://www.mysite.com/concrete5/ I obviously want this to behttp://www.mysite.com for the launch. I realise that I will probably have to amend the index.php and CSS files to reflect the correct file paths for images etc. But I'm wondering if I copy all files in the C5 folder and put them in the root will the site still work? Or do I have to reinstall C5 all over again and copy specific files? As I'm not exactly sure what files I would need to copy (there are a lot of folders in the C5 installation!) the former seems like the preferable option.

 
Pritam replied on at Permalink Reply
you need to just edit the
define('BASE_URL', 'http://mysite.com');

and change this line

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

TO

define('DIR_REL', '/');


in your site.php file

You can find this file in your \config dir
Vanfenix replied on at Permalink Reply
You may also need to update the .htaccess file in your main public_html folder.

As Pritam says - update the config/site.php file with the correct path and you should be good to go.

Always make sure you backup your files before you make any changes.
Hope that helps!

Van
Squibs replied on at Permalink Reply
Thanks guys!

It's a bit late in the night to be worrying about such things so I'll give it a try tomorrow.
Squibs replied on at Permalink Reply
I must be doing something stupid because it's not working.

The new site was located athttp://www.tirzah.ie/concrete5,... the old athttp://www.tirzah.ie. I've deleted all the files for the old website and I've followed the above advice.

1)
First the site.php file.

/concrete5/config/site.php

<?php
define('DB_SERVER', '****');
define('DB_USERNAME', '****');
define('DB_PASSWORD', '****');
define('DB_DATABASE', '****');
define('BASE_URL', 'http://www.tirzah.ie');
define('DIR_REL', '/');
define('****');


2)
Second, I've changed the HTAccess file which was located in concrete5/HTAccess.

# -- concrete5 urls start --
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase / # --was /concrete5/--
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
# -- concrete5 urls end --

The site I actually want to appear athttp://www.tirzah.ie is located at concrete5/themes/ttest (stupid name, I know!)
Vanfenix replied on at Permalink Reply
Hi Squibs.

If you want - PM me the details - i'll take a look for you. I can move it over as well if you like. Just back it up plz.
Squibs replied on at Permalink Reply
Thanks for the offer, Vanfenix. I actually got it sorted with a little help.

The problem was that when I moved the files out of the C5 folder and into the root I hadn't cleared the cache. When I did clear the cache I didn't move it into the root. Silly mistake but it's all sorted now.