---
title: "redirect auf alternative sprache"
url: "https://www.typo3.net/d/50139-redirect-auf-alternative-sprache"
source: "typo3.net"
tags: ["TYPO3","Mehrsprachigkeit","Frage","RealURL"]
created: "2006-09-18"
last_reply: "2006-09-19"
replies: 1
solved: false
page: 1
pages: 1
lang: "de"
---

# redirect auf alternative sprache

TYPO3 › Mehrsprachigkeit · 1 Antwort · gestartet 2006-09-18

## Eröffnungsbeitrag

**xjk** · 2006-09-18 · [Beitrag #1](https://www.typo3.net/d/50139-redirect-auf-alternative-sprache/1)

Hi,

ich habe folgendes Problem:

Wenn ich einer meiner Seiten direkt im Browser aufrufe werde ich immer auf die 2-te Sprache weitergeleitet.

Also z.B.:
Gehe ich auf <http://domain.com/test.html>, werde ich auf <http://domain.com/en/test.html> weitergeleitet.

Wenn ich dann in meinem Sprachmenu auf deutsch (meine default Sprache) gehe bleib ich auch auf der deutschen Seite.

Ich verwende Typo3 4.0, TemplaVoila und RealURL.

Das TypoScript verwende ich für die Sprachauswahl:

```typoscript
config.sys_language_uid = 0
config.language = de
plugin.meta.language = de

[globalVar = GP:L = 1]
  config.sys_language_uid = 1
  config.language = en
  plugin.meta.language = en
[global]
```

Das ist mein RealURL conf:

```php
<?php
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
      'preVars' => array(
        array(
            'GETvar' => 'L',
            'valueMap' => array(
                'en' => '1',
            ),
            'noMatch' => 'bypass',
        ),

        array(
				  'GETvar' => 'no_cache',
				  'valueMap' => array(
				  	'nc' => 1,
				  	),
				  'noMatch' => 'bypass',
				),
        array(
				  'GETvar' => 'print',
				  'valueMap' => array(
				  	'print' => 1,
				  	),
				  'noMatch' => 'bypass',
				),
      ),
      'postVarSets' => array(
        '_DEFAULT' => array(
          'news' => array(
            array(
              'GETvar' => 'tx_ttnews[backPid]',
            ),
            array(
              'GETvar' => 'tx_ttnews[tt_news]',
            ),
            array(
              'GETvar' => 'cHash',
            )
          ),
          'login' => array(
            array(
              'GETvar' => 'tx_newloginbox_pi1[forgot]',
            )
          ),
		  'newsletter' => array(
		    array(
			  'GETvar' => 'cmd',
			),
			array(
			  'GETvar' => 'aC',
			),
			array(
			  'GETvar' => 'rU',
			)
		  ),
        ),
      ),
      'pagePath' => array(
        'type' => 'user',
        'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
        'spaceCharacter' => '-',
        'languageGetVar' => 'L',
        'expireDays' => 30,
        'dontResolveShortcuts' => false,
        'excludePageIds' => '',
        #'segTitleFieldList' => 'nav_title,title,alias,tx_realurl_pathsegment',
      ),
      'fileName' => array(
  	    'defaultToHTMLsuffixOnPrev' => true,
		    'index' => array(
			    'index.html' => array(
				    'keyValues' => array(
			      'type' => 0,   // 'type' = '' hat auch nix gebracht.
				    ),
			    ),
		    ),
      )
);
?>
```

Hat irgentjemand eine Idee woran das liegen könnte?

## Antworten

### [#2](https://www.typo3.net/d/50139-redirect-auf-alternative-sprache/2) · xjk · 2006-09-19

Nach einer kleinen Debug session bin ich endlich dahinter gekommen.
Ich hab die extension rlmp_language_detection installiert und die hat immer den redirect verursacht #angry#

Also Problem ist behoben.

---

Quelle: „redirect auf alternative sprache“, typo3.net, https://www.typo3.net/d/50139-redirect-auf-alternative-sprache
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
