I have a site for the virtual host example.com
, the base directory for the drupal application is example.com/site1
. I'd like to setup a multisite but have the sites only differ by the base path, not the host name. So the new site will be reached through example.com/site2
, but it will use the code base in example.com/site1
.
I've tried creating a symbolic link https://www.drupal.org/docs/7/multisite-drupal/multisite-mapping-with-drupal#multisite-drupal-by-subdomains-and-url-path ln -s site1 site2
but that gives a 404 when accessing example.com/site2
I've also tried setting up a multisite using this https://www.drupal.org/docs/multisite-drupal/set-up-a-multisite and an AliasMatch
in the httpd.conf
but this seems to want the sites to have different hostnames rather than different paths. I also get a 404 in this setup.
Is it possible to set up a multisite with the sites only differing by the basepath? I'm using Drupal 9.