Hallo,
ich habe einen typo3-Server auf dem mehrere Subdomains publiziert werden sollen.
Nun "zickt" aber irgendjemand rum.
Mal lassen sich alle Seiten ansprechen in vielen Browsern (z.B. FireFox, Chrome, IE), mal nur einige (mal ja in FF && nein in C & IE; dann Nein in FF && ja in C & IE; dann Ja in FF & IE && Nein in C), mal gar keine, und jedes mal in anderen Kombinationen 😢
Ich habe nun langsam keine Ideen mehr, denn die Meldungen, wenn man was nicht aufgerufen werden kann, variieren zwischen "404" und "300".
Vielleicht hat mir noch jemand eine Idee oder einen Tipp?
realurl_conf.php
<?php
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'] = array (
'_DEFAULT' => array (
'init' => array (
'enableCHashCache' => '1',
'appendMissingSlash' => 'ifNotFile,redirect',
'enableUrlDecodeCache' => '1',
'enableUrlEncodeCache' => '1',
'emptyUrlReturnValue' => true,
'autoUpdatePathCache' => '1',
'respectSimulateStaticURLs' => '1'
),
'redirects' => array (),
'preVars' => array (
'0' => array (
'GETvar' => 'no_cache',
'valueMap' => array (
'nc' => '1',
),
'noMatch' => 'bypass'
),
'1' => array (
'GETvar' => 'L',
'valueMap' => array (
'en' => '0',
'de' => '1',
),
'noMatch' => 'bypass',
),
'2' => array (
'GETvar' => 'lang',
'valueMap' => array (
'de' => 'de',
'en' => 'en',
),
'noMatch' => 'bypass',
),
),
'pagePath' => array (
'type' => 'user',
'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'segTitleFieldList' => 'tx_realurl_pathsegment,title',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'expireDays' => '7',
'firstHitPathCache' => 1
),
'fixedPostVars' => array (),
'postVarSets' => array (),
'fileName' => array (
'defaultToHTMLsuffixOnPrev' => 0,
'acceptHTMLsuffix' => 1,
),
)
);
$domains = array (
'kita-a.my_domain.de' => 'www.kita-a.my_domain.de',
'www.kita-a.my_domain.de' => '203',
'kita-b.my_domain.de' => 'www.kita-b.my_domain.de',
'www.kita-b.panketal.de' => '242',
'hort-c.my_domain.de' => 'www.hort-c.my_domain.de',
'www.hort-c.my_domain.de' => '280',
'bibo-d.my_domain.de' => 'www.bibo-d.my_domain.de',
'www.bibo-d.panketal.de' => '301',
'feuerwehr.my_domain.de' => 'www.feuerwehr.my_domain.de',
'www.feuerwehr.my_domain.de' => '318',
'grunds-e.my_domain.de' => '181',
'ef.my_domain.de' => '175',
'kita-g.my_domain.de' => '156',
'kita-h.my_domain.de' => '109',
'kita-i.my_domain.de' => '42',
'_DEFAULT' => '7',
);
foreach ($domains as $domain => $pid) {
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'][$domain] = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['_DEFAULT'];
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'][$domain]['pagePath']['rootpage_id'] = $pid;
}
?>
.htaccess
CheckSpelling off
DirectoryIndex index.html index.php
RewriteEngine On
RewriteRule ^(typo3|typo3temp|typo3conf|t3lib|tslib|fileadmin|uploads|showpic\.php)/ - [L]
RewriteRule ^typo3$ typo3/index_re.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* /index.php [L]
TypoScript (aus einem Template)
# for realURL
config {
simulateStaticDocuments = 0
baseURL = http://www.kita-a.my_domain.de/
tx_realurl_enable = 1
typolinkCheckRootline = 1
typolinkEnableLinksAcrossDomains = 1
prefixLocalAnchors = all
}
Gruss,
uhasselmann