[TYPO3-english] Conditions hostname

JoH asenau info at cybercraft.de
Wed Nov 11 16:47:13 CET 2009


> I try with the follow typoscript:
>
> config.baseURL = http://www.domain.it/
> [hostname = www.domain.eu]
> config.baseURL = http://www.domain.eu/
> [end]
>
> But if I connect in '.it' or in '.eu' I have always baseURL to '.it'

Check if the hostname really is www.domain.eu since it has to match exactly.
And check if you set the condition inside any curly braces.

Something like this won't work:

page = PAGE
page {
  config.baseURL = http://www.domain.it/
  [hostname = www.domain.eu]
  config.baseURL = http://www.domain.eu/
  [end]
}

While this one will:


page = PAGE
page {
  config.baseURL = http://www.domain.it/
}

[hostname = www.domain.eu]
page.config.baseURL = http://www.domain.eu/
[end]

HTH

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com




More information about the TYPO3-english mailing list