[TYPO3-english] RealURL home page language redirect

Kaya Basharan kayabasharan at hotmail.com
Mon Sep 6 15:31:21 CEST 2010




> From: pedersen at frm2.tum.de
> Date: Mon, 6 Sep 2010 14:41:37 +0200
> To: typo3-english at lists.typo3.org
> Subject: Re: [TYPO3-english] RealURL home page language redirect
> 
> Am 06.09.2010 14:32, schrieb Kaya Basharan:
> > 
> > 
> >> From: tomkrawc at gmail.com
> >> Date: Sat, 4 Sep 2010 09:49:05 +0200
> >> To: typo3-english at lists.typo3.org
> >> Subject: Re: [TYPO3-english] RealURL home page language redirect
> >>
> >> Kaya Basharan pisze:
> >>> Hello everyone,
> >>>
> >>> My realurl configuration is working with one exception:  it redirects away from the home page when selecting a different language.
> >>> For example:  the home page is http://localhost:8505/  and selecting English (the default language is German) gives http://localhost:8505/en.html but displays the first sub-page instead of the home page (the language is correct).
> >>> I thought I had solved the problem but it has returned to haunt me just as the site is ready to go live.
> >>> I fixed the problem last time by changing:
> >>> $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
> >>> into: 
> >>> $TYPO3_CONF_VARS['EXTCONF']['realurl']['localhost'] = array(
> >>>
> >>> But now I have:
> >>> $TYPO3_CONF_VARS['EXTCONF']['realurl']['192.168.1.14'] = array(
> >>> and it's doing the same thing again.
> >>> http://192.168.1.14/en.html  displays the first sub-page when it should show the home page.
> >>>
> >>> I have spent days on this with no progress (cleared every cache, read the manual thoroughly many times).
> >>> Does anyone know what I'm doing wrong?  Any help would be greatly appreciated.
> >>>
> >>> sincerely
> >>> Kaya Basharan
> >>>   
> >>> uniqueLinkVars = 1 
> >>> sys_language_uid = 0   
> >>> sys_language_overlay = content_fallback
> >>>
> >>> localconf.php:
> >>> $TYPO3_CONF_VARS['EXTCONF']['realurl']['192.168.1.14'] = array(
> >>> //preVars configuration section
> >>> 	'preVars' => array(
> >>> 		array(
> >>> 			'GETvar' => 'L',
> >>> 			'valueMap' => array(
> >>> 				'en' => '1',
> >>> 				'ar' => '2',
> >>> 			),
> >>> 			'noMatch' => 'bypass',
> >>> 		),
> >>> ),
> >>>
> >>> _ _ _ _ _ _ _
> >>> Kaya Basharan
> >>   		 	   		
> >>
> >> If english is default then it has ID = 0 in all my installations. If 
> >> german is you second languate (first alternative language) then its ID is 1.
> >>
> >> so change this
> >>
> >> 	'preVars' => array(
> >> 		array(
> >> 			'GETvar' => 'L',
> >> 			'valueMap' => array(
> >> 				'en' => '1',
> >> 				'ar' => '2',
> >> 			),
> >> 			'noMatch' => 'bypass',
> >> 		),
> >>
> >> in this
> >>
> >> 	'preVars' => array(
> >> 		array(
> >> 			'GETvar' => 'L',
> >> 			'valueMap' => array(
> >> 				'en' => '0',
> >> 				'de' => '1',
> >> 			),
> >> 			'noMatch' => 'bypass',
> >> 		),
> >>
> >> If you have one domain in you TYPO3 installation then then stay with
> >>
> >> $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
> >>
> >> regards
> >> Tomek
> > 
> > 
> > Thanks for the suggestion but German is the default language and English and Arabic are additional languages.
> > http://localhost:8080/ shows the home page in German,
> > http://localhost:8080/en.html shows the first sub-page (instead of the home page) in English!
> > 
> > I switched back to using ['_DEFAULT'] but nothing changed.
> > 
> > The reason I thought of changing this in the first place is because the RealURL manual says it is deprecated, or did I misunderstand that?  Is that just for multi-domain sites?
> > 
> > Regards
> > Kaya
> > 
> >  		 	   		  
> Hello,
> 
> with a little more input it will be easier to help:
> a) How does your page tree look like?
> b) one-tree or multi-tree concept?
> c) complete language setup in ts
> d) check, that the page type for your alternative page language record
> is correct. From the symptoms it could be set to "shortcut to first
> sub-page"
> 
> Björn



Hi,


I have a single-tree set-up.
The home page has id=1 and all other pages are sub to (inside) that one.


    >Index
    -->(sysFolder)MetaNavigation
    -- --Impressum
    -- --Sitemap
    -->Wer wir sind
    -- -->Über uns
    -- -- --Management
    -- -- --Team


etc. etc.


I checked the page types but they're all correct.


The strange thing is it was all working.  Now in the new location it's not.  It's only a problem with the home page redirecting to the first sub-page.
http://localhost:8080/wer-wir-sind.html shows the correct page (Wer wir sind) in the correct language (German).
http://localhost:8080/en/who-we-are.html shows the same page in English (Who we are).  It's all correct.
but http://localhost:8080/en.html shows the same page too (Who we are)!  It's supposed to show the home page (Index).


I'm not sure what you mean by "c) complete language setup in ts", sorry.


Kaya


 		 	   		  


More information about the TYPO3-english mailing list