But unfortunately, the guide from Drupal office site on how to configure this feature is not ready enough, and beginners may be lost during it. In the following, we will step by step guide to set it up:
Before we begin, you must have a successful installation of a Drupal Bijvoorbeeld, if you still do not follow the installation guide from Drupal official site to get it setup. Here we will focus on how to add another domain to a Drupal installation.
Create a new database and database users for the second domain (lets call as "domain2.com)
Grant full privileges to database user created in step 1)
Create a subfolder "/ sites" directory called "domain2.com" will look / sites/domain2.com /. Do not use www in sub-directory.
Copy / sites / default / default.settings.php to the new folder / sites/domain2.com/settings.php (do not forget the "remove default. The filename)
Setup of the add-on domain for "domain2.com" in your web hosting account. For a shared hosting environment, domain2.com will refer to a directory "/ home/username/public_html/domain2.
Delete folder "/ home/username/public_html/domain2"
Create a symbolic link to the main site as "/ home/username/public_html/domain2", same as above.
Launch the domain2 in browser, will be launched Drupal install, go through the system by following the instructions on the screen. You have a new web site setup on the same Drupal code base.