[TYPO3-german] Sprachumschaltung / Verhalten von RealURL nach Update

Michael Ludwig frozenyoghurt2010 at gmail.com
Tue Sep 11 11:45:06 CEST 2018


*Hallo Birgit, hallo Christian,*

vielen Dank für Eure Antworten. Ich habe die RealURL-Konfiguration ein
wenig aufgeräumt und soweit ich beurteilen kann möglichst auf das
wesentliche reduziert.
Auch die zwei im Github-Wiki von Dmitry Dulepov beschrieben Möglichkeiten
zur Leerung des RealURL-Caches habe ich in den Planer eingebaut und führe
sie jedes Mal nach einer Änderung in der realurl_conf.php aus, sowie die
TYPO3-Caches löschen.
Der Fehler bleibt beständig, leider.

Folgende RealURL-Konfiguration ist derzeit bei mir aktiv, ich poste die
hier mal vollumfänglich und hoffe, dass ich damit nicht zuviel digitalen
Unrat erzeuge.

***********************************************************
<?php
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'] = [

    'def_mydomain' => [
        'init' => [
            'enableCHashCache' => 1,
            'enableUrlDecodeCache' => 1,
            'enableUrlEncodeCache' => 1,
            'enableDomainLookup' => 1,
            'appendMissingSlash' => 'ifNotFile',
            'adminJumpToBackend' => 1,
            'reapplyAbsRefPrefix' => 1,
            'respectSimulateStaticURLs' => 0,
            'emptyUrlReturnValue' => '/',
            'postVarSet_failureMode' => 'redirect_goodUpperDir',
        ],
        'redirects' => [],
        'redirects_regex' => [],
        'preVars' => [
            '0' => [
                'GETvar' => 'L',
                'valueMap' => [
                    'de' => 0,
                    'en' => 1,
                ],
                'noMatch' => 'bypass'
            ],
            [
                'GETvar' => 'no_cache',
                'valueMap' => [
                    'nc' => 1,
                ],
                'noMatch' => 'bypass',
            ],
        ],
        'pagePath' => [
            'type' => 'user',
            'userFunc' =>
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
            'segTitleFieldList' =>
'tx_realurl_pathsegment,alias,nav_title,title',
            'spaceCharacter' => '-',
            'languageGetVar' => 'L',
            'expireDays' => 1,
            'firstHitPathCache' => 1,
            'disablePathCache' => 0,
            'rootpage_id' => 3,
        ],
        'fixedPostVars' => [],
        'postVarSets' => [],
        'fileName' => [],
    ],

    'mydomain.de' => 'def_mydomain',
    'www.mydomain.de' => 'def_mydomain',
    'mydomain.com' => 'def_mydomain',
    'www.mydomain.com' => 'def_mydomain',

    '_DOMAINS' => [
        'encode' => [
            [
                'GETvar' => 'L',
                'value' => '',
                'urlPrepend' => 'https://www.mydomain.de',
                'useConfiguration' => 'www.mydomain.de',
            ],
            [
                'GETvar' => 'L',
                'value' => '0',
                'urlPrepend' => 'https://www.mydomain.de',
                'useConfiguration' => 'www.mydomain.de',
            ],
            [
                'GETvar' => 'L',
                'value' => '1',
                'urlPrepend' => 'https://www.mydomain.com',
                'useConfiguration' => 'www.mydomain.com',
            ],
        ],
        'decode' => [
            'www.mydomain.de' => [
                'GETvars' => [
                    'L' => '',
                ],
                'useConfiguration' => 'www.mydomain.de',
            ],
            'www.mydomain.de' => [
                'GETvars' => [
                    'L' => '0',
                ],
                'useConfiguration' => 'www.mydomain.de',
            ],
            'www.mydomain.com' => [
                'GETvars' => [
                    'L' => '1',
                ],
                'useConfiguration' => 'www.mydomain.com',
            ],
        ],
    ],
];
?>
***********************************************************


Ich habe meinen Domainnamen durch "mydomain" ersetzt.
Das TypoScript Setup sieht so aus (das "defaultGetVars" ist für RealURL
scheinbar ohne Auswirkung, mit und ohne probiert):

***********************************************************
config {
  baseURL = https://www.mydomain.de/
  language = de
  locale_all = de_DE.utf8
  htmlTag_langKey = de-DE
  sys_language_uid = 0
  defaultGetVars {
    L = 0
  }
}

[globalVar = GP:L=1]
  baseURL = https://www.mydomain.com/
  language = en
  locale_all = en_US.UTF8
  htmlTag_langKey = en
  sys_language_uid = 1
}
[global]
***********************************************************



Das ist die .htaccess-Datei, derzeit - zum testen - minimiert:

***********************************************************
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php [L]
</IfModule>
***********************************************************



Ich weiss nicht weiter, umso mehr hoffe ich, dass hier jemanden etwas dazu
einfallen könnte.

Viele Grüsse,
Michael





Am Di., 11. Sep. 2018 um 09:30 Uhr schrieb Christian Welzel <
gawain at camlann.de>:

> Am 10.09.18 um 16:58 schrieb Michael Ludwig:
>
> >> Problem: Die Umschaltung der Sprachen Deutsch/Englisch funktionierte vor
> >> dem Update (extra noch im Vorfeld getestet) über die Domainendung.
> >> Bedeutet: .de -> Deutsch und .com -> Englisch.
>
> Wie man sowas konfiguriert, steht hier:
>
> https://github.com/dmitryd/typo3-realurl/wiki/Language-Domains
>
>
> --
>   MfG, Christian Welzel
>
>    GPG-Key:     http://www.camlann.de/de/pgpkey.html
>    Fingerprint: 4F50 19BF 3346 36A6 CFA9 DBDC C268 6D24 70A1 AD15
> _______________________________________________
> TYPO3-german mailing list
> TYPO3-german at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german


More information about the TYPO3-german mailing list