[TYPO3-english] Conditions hostname

Roberto Torresani erreti at gmail.com
Wed Nov 11 16:58:44 CET 2009


Hi Joh!
Thanks for the answer
my code is out of braces: is config.baseURL and not page.config.baseURL
http://typo3.org/documentation/document-library/references/doc_core_tsref/4.2.1/view/1/7/#id4324729

The spelling of the domains are correct

Thanks
Roberto


2009/11/11 JoH asenau <info at cybercraft.de>

> > 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 <http://twitter.com/bunnyfield%0ATYPO3> cookbook (2nd edition):
> http://www.typo3experts.com
>
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>


More information about the TYPO3-english mailing list