Page 1 of 1

Move site to root directory

Posted: Thu Sep 29, 2005 1:40 pm
by lasse
Hi there!

I've done my first CMSMS. It's here:
http://test.ligevaerd.dk/

But naturally I want it here: (in root - where the old site now is)
http://www.ligevaerd.dk/

How do I move the whole thing without loosing data?

Can I just fiddle with config.php thus removing "test" from the many lines where it's written? Or should I do more?

Thanks in advance..

Re: Move site to root directory

Posted: Thu Sep 29, 2005 1:56 pm
by calguy1000
I would move all of the files (make sure that your permissions are correct after the move)

then edit the config.php and change the root_url and root_path variables and whatever else points to the old location

and that should be it.  unless you've got hard links in your pages of course.

Re: Move site to root directory

Posted: Thu Sep 29, 2005 2:30 pm
by lasse
And that's the "official" (read: most common) way to do it?

If so - I'll have a go..

Re: Move site to root directory

Posted: Thu Sep 29, 2005 3:26 pm
by lasse
The site is now gone.

I moved the folders and files to root - and changed all the settings in config.php so that the test-directory is not featured.

When I go to root - nothing happens.

Anyone?

Re: Move site to root directory

Posted: Thu Sep 29, 2005 4:12 pm
by lasse
The site is now alive and well at root.

The solution: My PHPadmin and admin folder for the CMS were the same - thus making trouble. I moved the CMS admin to another folder and changed the name in config.php..

Yeah..