是否有机会在drupal的本地多站点解决方案中进行多级(按层次结构)多站点支持? 这是一个例子:
--example.com ----yyy.example.com (blocks&content shared between it's parent and the same level domains) ------xxx.yyy.example.com (blocks&content shared between it's parent and the same level domains) ----zzz.example.com ----aaa.example.com ------bbb.aaa.example.com and so on...
感谢。
答案 0 :(得分:0)
您必须逐个执行每个多站点,并且必须为每个多站点设置不同的数据库前缀(您可以在sites / {multisite_name} /settings.php中更改它)。所以建立这样的多站点:
1)构建example.com
2)构建example.com/yyy多站点站点。 (前缀'prefix_xxx _')
3)构建example.com/xxxyyy多站点站点。 (前缀'prefix_xxxyyy _')
依旧......
请求您的网络托管服务管理员重定向:
1)example.com/yyy to yyy.example.com
2)example.com/xxxyyy to xxx.yyy.example.com
依旧......
您应该在sites / {multisite_name} /settings.php文件中逐个手动指定共享数据库表,如下所示:
$db_prefix = array(
'default' => 'prefix_xxx_',
'users' => 'prefix_xxxyyy_',
'sessions' => 'prefix_xxxyyy_',
'role' => 'prefix_xxxyyy_',
'authmap' => 'prefix_xxxyyy_',
'sequences' => 'prefix_xxxyyy_',
);