[TYPO3] RealUrl - multisite links and baseurl / suffix

Daniel Huf puffi666 at gmail.com
Wed Jun 18 14:23:35 CEST 2008


Hi,

I'm using TYPO3 4.2 and realurl 1.4.0 on multisite website.

I have a main website and two different sub sites (to simplify let's say 
Switzerland and China).

First I'd like to use a global www.domain.com with a suffix 
/Switzerland/, but I couldn't manage it. All I was able to do is adding 
the domains in the different main pages like ch.domain.com. I tried also 
to forward the other domains like www.domain.ch to 
www.domain.com/switzerland/ again I managed it with the baseurl to 
ch.domain.com

So how is it possible to write the suffix? .htaccess and rewritcond or 
realurl_conf.php?

Do I have to manage a different configuration in the realurl_conf.php 
for each of them? is the " 'rootpage_id' => '27', " mandatory?

I also tried to make a drop down menu in the global site for the 
registering on each sub sites, but how is it possible to create a 
different "baseurl" for each link with realurl?

All I get is a relative path and the pages have the same title in both 
sub sites /my-profile/login.html

lib.menu.dropdown = COA
lib.menu.dropdown {
	10 = HMENU
	10 {
		special = list		
		special.value = {$lib.menu.dropdown.pidList}
		wrap = <select {$lib.menu.dropdown.attributes} 
onChange="document.location.href='this.value"><option 
value="#">&nbsp;</option>|</select>
		/*
		1=JSMENU
		1.target=_top
		1.firstLabelGeneral =quickjump to snip
		*/
		1 = TMENU
		1 {
			expAll = 1
			noBlur = 1
		        NO {
   				stdWrap.cObject = COA
   				stdWrap.cObject {
	  				3 = TEXT
					3.data = TSFE:baseUrl
    					5 = TEXT
    					5.typolink.parameter.data = parameters : integers
    					5.typolink.parameter.field = uid   					   					
    					5.typolink.returnLast = url
    					5.wrap = <option value="|">   					
    					30 = TEXT
		   			30.field = title
		   			30.wrap = |</option>
   				}
				doNotLinkIt = 1
			}
       		}
       		
	}
	wrap = {$lib.menu.dropdown.wrap}
}

Thanks
Daniel


More information about the TYPO3-english mailing list