Drupal supports multi-sites, this means you can install Drupal once and use it for multiple websites (also known as single codebase). This kind of setup will make it easier to maintain your Drupal installation or when you want to upgrade to a newer version as you only need to maintain one codebase. The most common setup seems the subdomain aproach: each website uses its own subdomain. Suppose you want websites for different projects. The layouts and requirements may be different but they will all run on Drupal. The URL’s will look like this:http://project1.example.com
There are tons of tutorials on the Drupal site to create this setup but that’s not what we are looking for. We want a setup with multiple websites in subdirectories, not subdomains:http://www.example.com/project1
It’s a little harder (really only a little) to find how to get this done, let’s have a look.
That’s it, you have your first installation up and running, nothing new here.
Now point your browser to http://www.example.com/project1 and you should see the first site, http://www.example.com/project2 will get you to the second one. At this point both sites will be identical (you copied the database remember?) but you can start changing the contents independently of each other now.
This post is open source. Did you spot a mistake? Ideas for improvements? Contribute to this post via Github. Thank you!