Hi,

I'm hoping someone can tell me what I need to do. I have a multiple directory site and I've created a new subdirectory and want to clone an existing site for the new site. So I have

/drupal6/currentsite with currentsite.sql

which I have imported into

/drupal6/currentsite_2011 with currentsite_2011.sql

I exported the sql file and have imported it into the new database.

As required, I have the setup:

/usr/share/drupal6/sites/example.com.currentsite/
/usr/share/drupal6/sites/example.com.currentsite_2011/

(with /usr/share/drupal6 as my document root and separate settings.php files, etc.)

The problem is this: When I access the new site, "example.com/drupal6/currentsite_2011", everything works fine, except
when drupal goes to access the "files" subdirectory in currentsite_2011. It forms the following URL:

/drupal6/coe4dk4_2011/sites/example.com.drupal6.currentsite/files ...

rather than

/drupal6/coe4dk4_2011/sites/example.com.drupal6.currentsite_2011/files ...

i.e., it accesses the "files" directory from the old site.

I've noticed that there are a lot of links in the sql file that have "example.com.drupal.currentsite/files ..." hardcoded even after I
zeroed out all the cache tables. I've tried manually editting the sql file doing various s/drupal6.currentsite/drupal6.currentsite_2011/
replacements but the resulting database does not work. But it doesn't seem that I should have to do this?

Any help on this would be much appreciated.

Thanks,
Terry