Page 1 of 1
[ SOLVED ] How can I move a CMS installation to a folder?
Posted: Thu Mar 10, 2011 3:40 pm
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
Re: How can I move a CMS installation to a folder?
Posted: Thu Mar 10, 2011 3:43 pm
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)
Re: How can I move a CMS installation to a folder?
Posted: Thu Mar 10, 2011 4:15 pm
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.
Re: How can I move a CMS installation to a folder?
Posted: Thu Mar 10, 2011 4:18 pm
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!