in2code-de / ipandlanguageredirect

TYPO3 redirect - browserlanguage and ip-address based

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

redirect all pages to english/L=1 if not de,ch,at

celmedia opened this issue · comments

i tryed to make the extension runing for the last 2 days on 8.7.3 ... but i cant get any results in the redirect ... can someone help please ... i also would pay for help.

my redirect php is :

return [
'quantifier' => [
'browserLanguage' => [
'totalMatch' => 7,
'wildCardMatch' => 3
],
'countryBasedOnIp' => [
'totalMatch' => 13,
'wildCardMatch' => 5
],
'actions' => [
'referrers' => [
'totalMatch' => 7,
'wildCardMatch' => 3,
]
]
],
'actions' => [
[
'referrers' => [
'google.',
'bing.',
'yahoo.',
't-online.',
'yandex.',
'baidu.',
'links.playground.localhost.de',
],
'events' => [
'redirect'
]
],
[
'referrers' => [
''
],
'events' => [
'suggest'
]
]
],
'noMatchingConfiguration' => [
'identifierUsage' => 'worldwide_english',
'matchMinQuantifier' => 15
],
'redirectConfiguration' => [
// this number means: pid
// Worldwide, Europe
// Build URI to page 1 if visitors came from anywhere in the world
1 => [
// Build URI to language 0 if browser language is german "en"
0 => [
'identifier' => 'worldwide_german',
'browserLanguage' => [
'de'
],
'countryBasedOnIp' => [
'de',
'ch',
'at',
]
],
// Build URI to language 1 if browser language is not defined here
1 => [
'identifier' => 'worldwide_english',
'browserLanguage' => [
'
'
],
'countryBasedOnIp' => [
'*',
]
],
// Build URI to language 2 if browser language is chinese "fr"
2 => [
'identifier' => 'worldwide_france',
'browserLanguage' => [
'fr'
],
'countryBasedOnIp' => [
'fr'
]
],
],
]
];

if i check the domain over :
https://typo3.cel.media/?type=1555

il get the output :
{"redirectUri":"https://typo3.cel.media/index.php?id=1&L=1","activated":true,"events":["suggest"],"activatedReasons":{"differentLanguages":true,"differentRootpages":false},"givenParameters":{"browserLanguage":"","referrer":"","ipAddress":"178.195.128.222","languageUid":0,"rootpageUid":1,"countryCodeOverlay":""}}

but if il check normaly over
https://typo3.cel.media/
nothing happend there ... it should be https://typo3.cel.media/en

my language is L=0 is de L=1 is en L=2 is fr

please someone help or know someone who can help with redirecting ... thanks