0

I'd like to implement a website with multiple, slightly different versions of the whole site available under a single domain. The separate versions of the site should be accessible under different URL paths:

If the different versions could be hosted on separate (sub)domains, the Domain Access module would work mostly out-of-the-box for me. But I really want to host everything under a single domain. The Subfolders Domain module adds support for subdirectories to Domain Access, but it only works with Drupal 7 and seems discontinued. There were a few requests to add similar functionality directly to Domain Access, but the maintainers don't seem interested.

So how could this be implemented with Drupal 8? I would also consider solutions that don't rely on Domain Access and/or require a bit of custom code. For the most part, I simply need to create a copy of the website under a subdirectory with

  • some adjustments to content and presentation that I can easily perform in templates or hooks depending on the requested URL.
  • some pages only shown on some versions, with a UI similar to Domain Access.

put on hold as too broad by Jdrupal, leymannx, mradcliffe, Yusef, kiamlaluno Nov 14 at 10:48

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

Browse other questions tagged or ask your own question.