TYPO3 domain and subdomain with one installation

有些话、适合烂在心里 提交于 2019-12-13 15:25:01

问题


Have following problem.

I use TYPO3 version 4.7.1 and for both sites the domain record is configured.

  • Internet site → www.domain.com → root id = 77
  • Extranet site → service.domain.com → root id = 104

But still, both sites will be redirect to the internet site.

How must I set this up?


回答1:


Did you create a template for each domain? Did you set those templates as root?

See http://wiki.typo3.org/Multidomain for more details.




回答2:


Also go to the page properties/edit -> behaviour -> Miscellaneous -> Use as root: check the checkbox.

Clear caches.

If possible set the following:

[globalString = ENV:HTTP_HOST=domain.local]
config.baseURL = http://domain.local
[globalString = ENV:HTTP_HOST=www.domain1.tld]
config.baseURL = http://www.domain1.tld
[globalString = ENV:HTTP_HOST=www.domain2.tld]
config.baseURL = http://www.domain2.tld
[global]


来源:https://stackoverflow.com/questions/11235796/typo3-domain-and-subdomain-with-one-installation

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