I'm rewriting my .com website (under progress) and the new one using drupal
and wondering what's the good way for the change to be seamless?

say, my website is www.example.com
and the new drupal installation is in the folder new/

Which of the following is good? any positive or negative effect?
1) redirect example.com to example.com/new/
2) put new/* in the home directory and the original content in example.com/old/
3) or any other recommended method?

please advise, thanks.

Comments

solimeno’s picture

I'm no expert - but my method that I use is to employ symbolic links. I recently upgraded my sites from Drupal 5.2 to 5.3, and when I do an upgrade like this I just install each new version separately in a unique folder, and then copy the site specific files (modules, themes, uploaded files, images, etc) from the old site folder to the new site folder. You can test out the new site locally with your browser, and when everything is working, just create a symbolic link to the new folder:

$ ln -s /var/www/mynewsite www.example.com

... and rename the old folder to avoid any conflict with the new link to www.example.com

Hope this helps, it works for me, but as always YMMV.

thomas.lie’s picture

thanks solimeno, will try that when i'm ready to launch the new drupal site.