Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Is it possible to create a multiple-level (nested) multisite setup with Drupal?

I am looking for to have a separate site for: example.com/, example.com/a, example.com/b, example.com/a/123, example.com/a/234?

If not drupal, is there an alternative (wordpress plugin?) to achieve the same?



This is probably easier to maintain (code wise) using different root folders, but configuring the http output folder within apache or nginx configuration.


Yes. Drupal itself is moving away from multisite and toward this kind of setup. Disk space is cheap now. Unless you're talking about literally thousands of sites, and you have the Drupal expertise on your team to manage that kind of setup, use separate root folders.


project_root/sites/example.com

project_root/sites/example.com.a

project_root/sites/example.com.b

project_root/sites/example.com.a.123

project_root/sites/example.com.a.234

Create these directories. Add a settings.php file to each. Add stuff to sites.php if needed. example.com.a and example.com.b should definitely work. Not too sure about the other two because I haven't created a site in a multi-site setup that is 2 subdirs deep, but it is easy enough to try.

You may also need to symlink the subdirectories (e.g. a) in project_root. See "Subdirectory multi-site" here: https://www.drupal.org/documentation/install/multi-site



Yes, I have seen that, but it is not clear to me whether that allows multiple levels and/or nested multisites.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: