Page 1 of 1

Move site from sub domain to domain

Posted: Sat Oct 20, 2007 3:43 pm
by herro
Hi,

I am going to move my CMS site from a sub domain to the domain.

Like so: subsite.domain.org to domain.org

The MySQL are the same with no changes. So my question are if is correctly understood that I only should make the changes in the config.php file or there are other places I need to changes the setting.

Hope the question is clear enough.

Br,
Henrik

Re: Move site from sub domain to domain

Posted: Sat Oct 20, 2007 3:48 pm
by calguy1000
Well, unless you've got absolute links in your content, you should only have to change one or two lines in the config.php, just the url lines because you're not moving files around are you?

Re: Move site from sub domain to domain

Posted: Sat Oct 20, 2007 5:09 pm
by herro
Hi,

Thanks for the reply.

On the web server I need to move the CMS files from one folder to another to get CMS in to the right domain. This is the ISP setup.

Example:

/www/subsite.domain.org/ to /www/domain.org/

Br,
Henrik

Re: Move site from sub domain to domain

Posted: Sun Oct 21, 2007 5:09 pm
by Dr.CSS
FTP to site subdomain folder, download all files/folders to comp., go to main domain upload all files/folders, view/edit config.php and change all subdomain.domain URLs to reflect new path, save, upload overwrite old config.php...

You may have to change config.php chmod to 777 to make changes stick, then change back to 444...