0
votes

I have a sub directory in which typo3 resides. It is called "website". The DNS is pointing in this subdirectory. Now I generate the URL of the current site:

$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);

On the start page I get www.domain.com/website from this typolink. I cleared the caches (Typo3, Real Url) but the part "website" is always generated. I also set the base URL

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

Can somenone give me a hint where does this URL part is coming from? I'm using Typo3 4.6.3 and RealURL 1.12.1.

1

1 Answers

0
votes

The most practical solution is placing each TYPO3 project in subdomain, as they are available at almost all Hosting Providers for free without limits. I would recommend that as this is definitely fastest way and you do not need to remember that issue each time when creating new TYPO3 instance.

If you can't use the subdomain, edit your .htaccess, there is a line which you should change:

# Change this path, if your TYPO3 installation is located in a subdirectory of the website root.
#RewriteBase /