Questions tagged «subsites»

2
如何为一种语言设置多个域
我有一个Drupal 7 多语言站点,它使用诸如en.example.com之类的子域来检测语言。一切都按预期工作,但是我有一个移动版的女巫网站,我希望可以通过en.m.example.com等域进行访问。我该怎么做?我admin/config/regional/language只能为每种语言设置一个域,但必须设置两个域才能正常工作,例如: for English: en.example.com & en.m.example.com for German: de.example.com & de.m.example.com etc. (我想拥有与Wikipedia相同的结构。)问题是,使用子域进行语言选择,Drupal将所有内部链接创建为绝对路径。例如,菜单链接将创建为: <li class="menu-773"><a href="http://en.example.com/test" >test</a></li> and not as <li class="menu-773"><a href="/test" >test</a></li> 因此,我可以使用Apache创建一个域别名,以将请求从en.m.example.com发送到en.example.com,但是所有内部链接都会使用户从移动版本恢复为正常版本。我怎么解决这个问题?
15 7  i18n-l10n  subsites 

4
http和https的base_url?
我有一个可以通过http和https访问的网站。我看到安全审查中抱怨的base_url未定义settings.php。 但是,当我将其定义为http://example.com并刷新所有缓存时,不会呈现https中的模板。 当我注释掉所有内容后$base_url,settings.php一切恢复正常。 我该如何解决这个问题?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.