Page 1 of 1

Moving my site

Posted: Thu Feb 01, 2007 10:52 pm
by boldstepdesign
I need help.
I'm moving my site from http://boldstepdesign.com/cms/ to the root of my site: http://boldstepdesign.com/
I've copied all the files into the root, I visited my site clicked a few links, and what every link I click takes me to "http://boldstepdesign.com/cms/index.php?=what ever page I clicked" The what ever page I clicked is say if I click the about it takes me to the about etc.... How do I fix the links (including the admin) from going to http://boldstepdesign.com/cms/ to going to http://boldstepdesign.com/

Re: Moving my site

Posted: Thu Feb 01, 2007 11:15 pm
by Signex
did you change the config.php file with the new correct paths?

here`s a topic about copying a cmsms site to a new server, which is, except for some steps, the same like copying to a different folder. you just dont have to move your database when moving to a new folder.

http://wiki.cmsmadesimple.org/index.php ... New_Server

Re: Moving my site

Posted: Fri Feb 02, 2007 7:14 pm
by RonnyK
Besides moving and changing the path, you could also use a URL-forward in the root, redirecting you to cms/index.php. It's a lot easier.

Ronny

Re: Moving my site

Posted: Fri Feb 02, 2007 9:24 pm
by Dr.CSS
Moving from subfolder to root is the easiest move...

Copy all files/folders to root...

FTP/open config.php and change all instances of boldstepdesign.com/cms/  to boldstepdesign.com/

That's it...

Re: Moving my site

Posted: Wed Mar 07, 2007 2:46 pm
by Gregor
I'm considering of moving a part of my site. What's the case? I set up a second site from scratch and noticed that it does not give me any problems with installing/upgrading modules via XML. My first site, I set up a year ago and upgraded it to version 1.0.4. I notice that it is not possible to install/upgrade modules via XML. So therefore I thought I will do the following steps:
0. clear cache and tmp
1. back up current db
2. rename the httpdocs directory to httpdocs-old
3. make a new httpdocs directory
4. do a fresh install of version 1.0.4
5. copy the modules directory to the new install
6. copy the the 'doc', and 'uploads', and ' and 'image' directories to the new cmsms-install
7. test the site

My assumption is, that the copied directories will keep the same owner as they have now, and that the fresh installed cmsms also will keep the same owner-name. After the procedure, it will be possible to use XML for upgrading/installing modules.

I'd like to know your comments on this action and these steps.

Thanks,
G

Re: Moving my site

Posted: Tue Apr 03, 2007 8:04 am
by hexdj
RonnyK wrote: Besides moving and changing the path, you could also use a URL-forward in the root, redirecting you to cms/index.php. It's a lot easier.

Ronny

Ronny: Do you do this thru .htaccess, if so, what's the rule?

Re: Moving my site

Posted: Tue Apr 03, 2007 8:17 pm
by RonnyK
If you create a index.php file in your domain-root, with the following logic:

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title></title>
</head>

</__body>
<META HTTP-EQUIV="Refresh" CONTENT="0; URL=cms/index.php">
<__body>
</__html>
where "cms/index.php" needs to be replaced with the path the cms is installed.

A find/replace through config.php is not difficult as well, but this one is also easy. If you want to change the config.php, backup the original before editing the file, change the paths there with find/replace, to avoid typing errors.

Ronny

Re: Moving my site

Posted: Wed Apr 04, 2007 10:56 pm
by Dr.CSS

Re: Moving my site

Posted: Fri Apr 06, 2007 8:48 pm
by Pierre M.
There is a "Moved Page" module also.
Pierre M.