[ SOLVED ] How can I move a CMS installation to a folder?

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
User avatar
fearmydesign
Power Poster
Power Poster
Posts: 363
Joined: Sun Feb 28, 2010 10:54 pm

[ SOLVED ] How can I move a CMS installation to a folder?

Post by fearmydesign »

Good morning forum... question, I have a CMSMS site, but I want to install a completely new website on the root... so I would like to move the existing site to a sub folder (i.e. http://www.mysite.com/oldCMSMS) so that we can reference back to it. I can't imagine just drag-n-drop into a new directory, that would mess up the DB connectivity etc right?

Has anyone done something similar before?

Thanks
Last edited by fearmydesign on Thu Mar 10, 2011 4:18 pm, edited 1 time in total.
Rod
"Be careful who you step on your way up; because you never know who you'll meet on your way down!" - or something like that.
uniqu3

Re: How can I move a CMS installation to a folder?

Post by uniqu3 »

Drag/Drop whole site, change path in your config.php ;)
Or run installer again and uncheck the 2 options to write sample data and write tables in db (step 5 i think)
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: How can I move a CMS installation to a folder?

Post by Wishbone »

If you're using pretty URLs, you'll also need to change your RewriteBase in your .htaccess files.

Don't forget to clear your cache before moving.
User avatar
fearmydesign
Power Poster
Power Poster
Posts: 363
Joined: Sun Feb 28, 2010 10:54 pm

Re: How can I move a CMS installation to a folder?

Post by fearmydesign »

Drag/Drop whole site, change path in your config.php
Or run installer again and uncheck the 2 options to write sample data and write tables in db (step 5 i think)
Thank you! Dragged & Dropped! ...modified the config.php (path section), Worked!
If you're using pretty URLs, you'll also need to change your RewriteBase in your .htaccess files.
Thanks Wishbone, i wasn't using them, but this is great to know for future reference (and others) as I will have some other sites that do have pretty url's!
Rod
"Be careful who you step on your way up; because you never know who you'll meet on your way down!" - or something like that.
Locked

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