Drupal Multisite使用子文件夹 [英] Drupal Multisite using subfolder
问题描述
我想在使用多功能的子目录中有另一个drupal-site。假设我有域foo.example.com和文件夹sites / foo.example.com。我想要新的网站在foo.example.com/bar。所以根据设置php中的描述,我只需要设置一个文件夹sites / foo.example.com.bar。
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.
嗯...我做了但是它仍然加载站点/ foo.example.com /。
Well… I did. Yet it does still load the site of sites/foo.example.com/.
我做错了什么?
推荐答案
在Drupal根目录中创建一个指向自身的符号链接。所以在这个例子中,假设你的Drupal站点在 / var / www / html
中,你可以在命令行中执行以下操作:
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
这篇关于Drupal Multisite使用子文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!