Change URL of a multi-site
Introduction
At the moment, there is a static website at foobar.example.com. I want to use Drupal (multi-site) to build a new site at this domain. But until it is finished, the static website shall stay.
Is it possible?
Can I create a multi-site at foobar2.example.com, build the site, and later rename the folder inside of sites from foobar2.example.com to foobar.example.com and change $base_url inside of the settings.php to the new domain? Anything else?
Or is this not possible without any problems?
Other solutions?

Yes
No problems. And, in fact, you don't event need to change the base_url. The base_url only needs to be set in certain circumstances -- usually when you've got something about your system that isn't set correctly (e.g. some shared hosting setups).
I don't believe that is
I don't believe that is entirely true. You will also have to update the files table. This will contain information from your old files directory. If you have a custom favicon.ico file then that may need to be changed also. One of the best fixes for this if your using drupal 6 or when d7 comes around is this patch from crell that let's you create a sites.php file. This file let's you point a site to a certain sites folder. Allowing you to not have to rename the site folder. This has been a life saver for my sites.
http://drupal.org/node/231298
Files and favicon?
This is only needed if I uploaded files? Or do I have to update the database, too, although no files were uploaded?
And is this process of updating easy (without any problems?) possible via phpmyadmin? Never dit something like that before.
You mean the "Path to custom icon" at
admin/build/themes/settings, correct?Hmm, I don't like to use a patch for Drupal, to be honest. Does this patch only fix the above mentioned problems? So: files and favicon? Or does it more for this case?
Ah, btw:
what about internal links in content? When I linked node relatively, there won't be any problems, correct?
So
<a href="/node/2">click here</a>instead of<a href="http://example.com/node/2">click here</a>, correct? Or should I use other methods? (can remember vague, that I read of a module for this purpose ...)As long as you use relative
As long as you use relative you should be fine. As far as uploads if you use cck's file field you will run into this also. It's not insurmountable, but it will require you to go into the database and inside the files table replace your old sites folder with your new sites folder. And yes path to custom icon if you keep the custom icon in your files folder.
Thanks!
Thanks Boris Mann,
I'm relieved to hear that - and now have plenty opportunitys to update all my static websites without pressure :)
Ah, I see. But it might not have any negative effect, if I set it (and it wouldn't be needed)? Never tried a multi-site without this setting, though.