[TYPO3-english] Strange RealUrl multiple domain problem

Dmitry Dulepov dmitry.dulepov at gmail.com
Wed Dec 14 09:46:31 CET 2011


Hi!

Marieke de Bruin wrote:
> Is something wrong with this?

Yes. You should not use _DEFAULT in multidomain environments. Quote from my 
blog ([1]):

==============
WHAT YOU DID NOT KNOW ABOUT _DEFAULT

There is one important issue with using _DEFAULT in multi-domain 
environment. When RealURL searches for domains, it does walks domains in 
the configuration sequentally until the first match. _DEFAULT matches 
always. It means that if any domain is placed after _DEFAULT, it will never 
be reached. Remember that! But better avoid using _DEFAULT at all in 
multi-domain configuration.
==============

Another issue is that you confioguration does not include non-www domains. 
So RealURL will use _DEFAULT and incorrect rootpage_id for all non-www 
domains. The path to /menu/home/ for one domain will get into the cache and 
will be used by every other domain because of the _DEFAULT.

Drop _DEFAULT. You do not need it. Use real domains and everything will be 
fine :)

[1] http://www.dmitry-dulepov.com/2008/06/realurl-made-easy-part-2.html

-- 
Dmitry Dulepov
TYPO3 core&security teams member
Blog: http://dmitry-dulepov.com/
Twitter: http://twitter.com/dmitryd

Simplicity will save the world.


More information about the TYPO3-english mailing list