Drupal Multisite using subfolder

╄→尐↘猪︶ㄣ 提交于 2019-12-11 13:55:49

问题


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.



来源:https://stackoverflow.com/questions/5124863/drupal-multisite-using-subfolder

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!