0

我有一个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);

在起始页上,我www.domain.com/website从这个错字链接中获得。我清除了缓存(Typo3,Real Url),但始终生成“网站”部分。我还设置了基本 URL

config {
        baseURL = http://www.domain.com/
        simulateStaticDocuments = 0
        tx_realurl_enable = 1
}

有人能告诉我这个 URL 部分是从哪里来的吗?我正在使用 Typo3 4.6.3 和 RealURL 1.12.1。

4

1 回答 1

0

最实用的解决方案是将每个 TYPO3 项目放在子域中,因为它们几乎可以在所有托管服务提供商处免费且无限制地使用。我建议您这样做,因为这绝对是最快的方法,并且您不需要在每次创建新的 TYPO3 实例时都记住该问题。

如果您不能使用子域,请编辑您.htaccess的 ,您应该更改一行:

# Change this path, if your TYPO3 installation is located in a subdirectory of the website root.
#RewriteBase /
于 2012-05-08T12:00:05.700 回答