Hello everybody, I desperately need your help!

I'm not a professional developer but only a webmaster. I had my first Drupal's website installed and configured by a developer on a sub-domain. When then the site was ready to be launched for my company, he simply told me to copy and paste all folders from the sub-domain htdocs to the main domain's.

I just recently noticed that the old sub-domain is still active - actually all old folders are still there - but it's giving lots of errors when pages are accessed and all errors are reported in my main website's log reports.

I would like to definitely remove the old folders from the sub-domain's root, but I'm afraid that this will impact on the other main site... What should I do?

What about deleting only the settings.php of the old site, so that the drupal installation no longer points to the database that is actually used by the main site that I want to keep?

Please help as I don't have any clue about what to do.

Thank you.

Comments

j_ten_man’s picture

If I understand correctly, you should be fine to completely remove the old directory, but that isn't clear. Are you using the Drupal multisite setup (I don't think so) or you have two complete instances of Drupal?

Go ahead and remove the settings.php file and see what you get. That shouldn't cause any issues other than to kill the site when people try to navigate to it. You could also setup a Domain forward for the old URL. You could do this in the httpd.conf file as well (http://www.askdavetaylor.com/how_do_i_add_a_301_redirect_to_my_apache_ht...). The forwarding isn't necessary but if you think anyone is linking to the old URL, then you probably will want to do one of the above.

steff2009’s picture

I have two full Drupal installation whose settings.php points to the same database.

Nobody links to the old domain, therefore there's no need to redirect (also because I'm on an external host and cannot access server configuration).

I will remove the settings.php and let you know what happens.

Thank you very much for your reply.

steff2009’s picture

I deleted settings.php and now when you navigate to the old site, you get the Drupal installation wizard.

I think now I should delete all Drupal directories to avoid that, shouldn't I? As the old domain should display simply a welcome page.

The main site is working perfectly.

j_ten_man’s picture

Just to be safe, rename the index.php to index-old.php and navigate to the old and new url. If that is fine then you can remove the old installation completely.

steff2009’s picture

Thank you again.