我有一个typo3所在的子目录。它被称为“网站”。 DNS指向此子目录。现在我生成当前站点的URL:
$typolink_conf = array(
"title" => $this->site['page_title'],
"ATagParams" =>'',
"no_cache" => 0,
"parameter" => $this->site['id'],
"useCacheHash" => 1
);
$this->site['url'] = $this->cObj->typolink($this->site['page_title'], $typolink_conf);
在开始页面上,我从这个typolink获得www.domain.com/website
。我清除了缓存(Typo3,Real Url),但始终生成“网站”部分。我还设置了基本网址
config {
baseURL = http://www.domain.com/
simulateStaticDocuments = 0
tx_realurl_enable = 1
}
有人可以给我一个提示这个URL部分来自哪里?我正在使用Typo3 4.6.3和RealURL 1.12.1。
答案 0 :(得分:0)
最实用的解决方案是将每个TYPO3项目放置在子域中,因为几乎所有主机提供商都可以免费获得这些项目。我建议这是绝对最快的方式,每次创建新的TYPO3实例时都不需要记住这个问题。
如果您无法使用子域名,请修改.htaccess
,您应该更改一行:
# Change this path, if your TYPO3 installation is located in a subdirectory of the website root.
#RewriteBase /