Hi,

ich würde mit den Optionen "appendMissingSlash" und "defaultToHTMLsuffixOnPrev" spielen. Setze mal letzteres auf "0" und schau was passiert.

Zum anderen würde ich die Domains ohne "www" auf die "www" umleiten oder umgekehrt.
1) w\ Duplicate Content in Suchmaschinen
2) die realurl - Konfiguration wird kürzer.
3) Ich würde das in der htaccess machen, da das performanter ist als wenn erst die ganze TYPO3-Maschinerie angeschmissen wird.

Gruß,
Marcus


Gruß,
Marcus

Andre Leubner schrieb am 15.02.11 10:54:

Hallo,

ich hab mal wieder ein Problem mit RealURL und bräuchte echt dringend
Hilfe. An dem Problem sitz ich schon seit 2 Tagen und hab auch schon
Kollegen zu Rate gezogen aber keiner konnte helfen.

Pagetree:

[00] ROOT (Oberste Ebene)
[01] -PAGE
[02] --SITE1
[05] ---SUBPAGE1
[06] ---SUBPAGE2
[07] ---SUBPAGE3
[03] --SITE2
[08] ---SUBPAGE1
[09] ---SUBPAGE2
[10] ---SUBPAGE3
[04] --SITE3
[11] ---SUBPAGE1
[12] ---SUBPAGE2
[13] ---SUBPAGE
""
Dazu kommt noch, dass für alle drei Seiten unterschiedliche Sprachen
verwendet werden sollen. Auf der ROOT Seite (ID 0) sind hierzu zwei
Website-Sprachen angelegt worden (ID 1 und 2).

ID 02: Ist Anfang der Seite, Eigenes Typoscript Root Template, Default
Sprache (ID 0), Domainrecords: www.site1.de, site1.de

ID 03: Ist Anfang der Seite, Eigenes Typoscript Root Template, Sprache 1
(ID 1), Domainrecords: www.site2.de, site2.de

ID 04: Ist Anfang der Seite, Eigenes Typoscript Root Template, Sprache 2
(ID 2), Domainrecords: www.site3.de, site3.de

www.site1.de ist die Hauptdomain. Die weiteren Domains sind
Alias-Domains von www.site1.de.

Folgendes Typoscript Setup ist auf ID 02, 03 und 04 eingebunden:

################################
# Konfiguraiton der Sprache
################################

#Standardsprache Deutsch, sys_language.uid = 0
config.language = de
config.locale_all = de_DE
config.htmlTag_langKey = de
config.linkVars = L
config.sys_language_uid = 0

# Sprache1, sys_language.uid = 1
[globalVar = GP:L = 1]
config.sys_language_uid = 1
config.language = de
config.locale_all = de_AT
config.htmlTag_langKey = at
[global]

# Sprache2, sys_language.uid = 2
[globalVar = GP:L = 2]
config.sys_language_uid = 2
config.language = de
config.locale_all = de_DE
config.htmlTag_langKey = de
[global]

################################
# Konfiguraiton von RealURL
################################
config.simulateStaticDocuments = 0
config.simulateStaticDocuments_noTypeIfNoTitle = 0
config.tx_realurl_enable = 1
config.prefixLocalAnchors = all

config.baseURL = http://www.site1.de/

[globalString = IENV:HTTP_HOST = www.site2.de]
config.baseURL = http://www.site2.de/
[global]

[globalString = IENV:HTTP_HOST = www.site3.de]
config.baseURL = http://www.site3.de/
[global]

Und so sieht die realurl_conf.php aus:

<?php
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']=array (
'site1.de' =>
array (
'init' =>
array (
'enableCHashCache' => true,
'appendMissingSlash' => 'ifNotFile,redirect',
'adminJumpToBackend' => true,
'enableUrlDecodeCache' => true,
'enableUrlEncodeCache' => true,
'emptyUrlReturnValue' => '/',
),
'pagePath' =>
array (
'type' => 'user',
'userFunc' =>
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'rootpage_id' => '2',
'firstHitPathCache' => 1,
),
'fileName' =>
array (
'defaultToHTMLsuffixOnPrev' => 1,
'acceptHTMLsuffix' => 1,
),
'preVars' =>
array (
0 =>
array (
'GETvar' => 'L',
'valueMap' =>
array (
'de' => '1',
'fr' => '2',
),
'noMatch' => 'bypass',
),
),
),

'site2.de' =>
array (
'init' =>
array (
'enableCHashCache' => true,
'appendMissingSlash' => 'ifNotFile,redirect',
'adminJumpToBackend' => true,
'enableUrlDecodeCache' => true,
'enableUrlEncodeCache' => true,
'emptyUrlReturnValue' => '/',
),
'pagePath' =>
array (
'type' => 'user',
'userFunc' =>
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'rootpage_id' => '3',
'firstHitPathCache' => 1,
),
'fileName' =>
array (
'defaultToHTMLsuffixOnPrev' => 1,
'acceptHTMLsuffix' => 1,
),
'preVars' =>
array (
0 =>
array (
'GETvar' => 'L',
'valueMap' =>
array (
'de' => '1',
'fr' => '2',
),
'noMatch' => 'bypass',
),
),
),

'site3.de' =>
array (
'init' =>
array (
'enableCHashCache' => true,
'appendMissingSlash' => 'ifNotFile,redirect',
'adminJumpToBackend' => true,
'enableUrlDecodeCache' => true,
'enableUrlEncodeCache' => true,
'emptyUrlReturnValue' => '/',
),
'pagePath' =>
array (
'type' => 'user',
'userFunc' =>
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'rootpage_id' => '4',
'firstHitPathCache' => 1,
),
'fileName' =>
array (
'defaultToHTMLsuffixOnPrev' => 1,
'acceptHTMLsuffix' => 1,
),
'preVars' =>
array (
0 =>
array (
'GETvar' => 'L',
'valueMap' =>
array (
'de' => '1',
'fr' => '2',
),
'noMatch' => 'bypass',
),
),
),

'www.site1.de' =>
array (
'init' =>
array (
'enableCHashCache' => true,
'appendMissingSlash' => 'ifNotFile,redirect',
'adminJumpToBackend' => true,
'enableUrlDecodeCache' => true,
'enableUrlEncodeCache' => true,
'emptyUrlReturnValue' => '/',
),
'pagePath' =>
array (
'type' => 'user',
'userFunc' =>
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'rootpage_id' => '2',
'firstHitPathCache' => 1,
),
'fileName' =>
array (
'defaultToHTMLsuffixOnPrev' => 1,
'acceptHTMLsuffix' => 1,
),
'preVars' =>
array (
0 =>
array (
'GETvar' => 'L',
'valueMap' =>
array (
'de' => '1',
'fr' => '2',
),
'noMatch' => 'bypass',
),
),
),

'www.site2.de' =>
array (
'init' =>
array (
'enableCHashCache' => true,
'appendMissingSlash' => 'ifNotFile,redirect',
'adminJumpToBackend' => true,
'enableUrlDecodeCache' => true,
'enableUrlEncodeCache' => true,
'emptyUrlReturnValue' => '/',
),
'pagePath' =>
array (
'type' => 'user',
'userFunc' =>
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'rootpage_id' => '3',
'firstHitPathCache' => 1,
),
'fileName' =>
array (
'defaultToHTMLsuffixOnPrev' => 1,
'acceptHTMLsuffix' => 1,
),
'preVars' =>
array (
0 =>
array (
'GETvar' => 'L',
'valueMap' =>
array (
'de' => '1',
'fr' => '2',
),
'noMatch' => 'bypass',
),
),
),

'www.site3.de' =>
array (
'init' =>
array (
'enableCHashCache' => true,
'appendMissingSlash' => 'ifNotFile,redirect',
'adminJumpToBackend' => true,
'enableUrlDecodeCache' => true,
'enableUrlEncodeCache' => true,
'emptyUrlReturnValue' => '/',
),
'pagePath' =>
array (
'type' => 'user',
'userFunc' =>
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'rootpage_id' => '4',
'firstHitPathCache' => 1,
),
'fileName' =>
array (
'defaultToHTMLsuffixOnPrev' => 1,
'acceptHTMLsuffix' => 1,
),
'preVars' =>
array (
0 =>
array (
'GETvar' => 'L',
'valueMap' =>
array (
'de' => '1',
'fr' => '2',
),
'noMatch' => 'bypass',
),
),
),
);
?>

Auf jeder Seite werden die RealURL Links erzeugt - und das eigentlich
auch so wie ich mir das Vorstelle.

Beispiel:
Bin ich auf www.site1.de und lasse mir den Link zu SUBPAGE1 anzeigen
schaut dieser so aus: http://www.site1.de/subpage1.html


Auf www.site2.de sehen die Links so aus:
http://www.site2.de/subpage1.html wäre also auch korrekt.

Klicke ich auf einen Link bekomme ich auf jeder Seite die Fehlermeldung:
"Reason: Segment "subpage1" was not a keyword for a postVarSet as
expected!"

Ich habe echt keine Ahnung was an der Konfiguration falsch sein könnte,
habe schon sämtliche Konstellationen versucht. Die rootpage_id ist
überall korrekt gesetzt - das ist der Hauptfehler den man zu diesem
Thema findet wenn man googled...

Umgebung:
TYPO3 4.5.0
RealURL 1.10.1

Und natürlich habe ich den Cache nach jeder Änderung gelöscht...

Viele Grüße,
André
_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german

Antwort per Email an