Drupal Multisite using subfolder

2019-08-11 23:16发布

问题:

i want to have another drupal-site in a subdirectory using multisites. Assuming I have the domain foo.example.com and the folder sites/foo.example.com. I want to new site to be at foo.example.com/bar. So according to the describtion in the settings php i'd simply have to setup a folder sites/foo.example.com.bar.

Well… I did. Yet it does still load the site of sites/foo.example.com/.

What am i doing wrong?

回答1:

You might need to create a symbolic link inside the Drupal root pointing to itself. So in this example, assuming that your Drupal site is in /var/www/html, you would do the following at the command line:

cd /var/www/html
ln -s . bar


回答2:

I've installed Drupal 7 in a subdirectory using multisites configuration.

On my case beside the symbolic link I still need to correct the value on Public file system using admin account once the instalation is completed. Otherwise File System Setting is not work.