Moving my site

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
boldstepdesign

Moving my site

Post 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/
Signex

Re: Moving my site

Post 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
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Moving my site

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Moving my site

Post 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...
User avatar
Gregor
Power Poster
Power Poster
Posts: 1874
Joined: Thu Mar 23, 2006 9:25 am

Re: Moving my site

Post 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
hexdj
Power Poster
Power Poster
Posts: 415
Joined: Sat Mar 24, 2007 8:28 am

Re: Moving my site

Post 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?
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Moving my site

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Moving my site

Post by Dr.CSS »

Pierre M.

Re: Moving my site

Post by Pierre M. »

There is a "Moved Page" module also.
Pierre M.
Locked

Return to “[locked] Installation, Setup and Upgrade”