Hello there, just a quick question - I've installed Drupal and have had no problems. Really all I want to do is move the installation to another directory. At the moment the installation is at www.mysite/abc and I was wondering if I could simply move the content that's in 'abc' and drop it into another directory called 'def'. So instead of going to www.mysite/abc I would be going to www.mysite/def - would this cause any problems (Fantastico was used to install Drupal).

Many thanks

Comments

Mark Theunissen’s picture

Yep, it's fine to do that.

I would suggest you empty the cache tables when you do it, because moving directories can create issues with images and the img_assist module - you think it's broken but you're still seeing a cached page.

Mark

http://codebaboon.com
Drupal based services

hagrin’s picture

If you're using apache and .htaccess, I think you also have to concern yourself with the ReWriteBase line and to change it to the new folder.

_______________________________________________________________________________
http://www.hagrin.com - Just my little slice of the Interweb

arh1’s picture

hmm, i'd give you a little more qualified "yes". this can certainly be done, but it may take a bit of work.

first of all, i don't have any experience w/ Fantastico, but that could significantly complicate things. can't help you there other than a general warning...

are you using private files? if so, you'll need to manually update your db. unfortunately i'm not sure where all the current path might be stored, but check your files table either way.

yes, be sure to update the rewrite rules in your .htaccess file. on that front, also think of urls that may have already been indexed by search engines. you may want to add some additional rewrite rules that redirect old /abc urls to new /def urls.

and yes, beware of cache during the process. be sure to empty all cache tables and test the site as both anonymous and authenticated users after making the change.

vako’s picture

You can find more details on this link: http://drupal.org/node/3366

Does anyone know what we should be changing in the .htaccess file (only the path?) and what is the best way to edit it? i.e.: using a text editor of course, but should we touch the permissions afterward?