[TYPO3-english] RealURL 1.x: nested domains?

Dmitry Dulepov dmitry.dulepov at gmail.com
Thu Mar 17 10:01:27 CET 2016


Hi!

Xavier Perseguers wrote:
> Hi Urs,
>> I just read on
>> https://github.com/dmitryd/typo3-realurl/wiki/Installing-and-enabling-the-extension
>>
>>
>> "There must be no "nested domains". This means that there can be only
>> one domain record from the current page down to the root of the page
>> tree. RealURL does not support nested domains!"
>>
>> Was that already the case for 1.x, or is that just for 2.x?
>
> Some people were using nested domains with 1.x but this was never (or at
> least not anymore for many years) officially supported. Meaning if you
> ever asked a question or reported a bug about it, Dmitry kindly told you
> that nested domains were not to be used.
>
> For 2.x he probably really dropped any chance to support that :)

All correct :)

There are several problems with nested domains. The major one is: given 
a page id in the inner domain, should path be encoded as a path on the 
inner domain or outer domain?

I remember that nested domains feature was not really included to 
realurl in the beginning. But than the company, where I worked, had a 
website with such configuration and wanted to use realurl there. I spent 
complete two weeks on it and it worked more or less reliably but still 
not always right. I believe we had to rearrange some pages to make sure 
that there are no more than one nested domain.

Now I strongly believe that nested domains is a wrong thing. The same 
result can be made with shortcuts or mount points. It is a cleaner way 
and it removes ambiguity in url creation. In most cases there is no need 
at all for nested domains because nothing like permissions or tree 
conditions are used. People just make them because they can but 
technically it is a nightmare to encode and decode such configurations.

So this feature is not coming back. As a solution for existing projects, 
I have two:
- Don't update realurl. Version 1 still works.
- Move nested domains to separate levels and use mount points in the old 
locations. This should give you the same effect.

-- 
Dmitry Dulepov

Today is a good day to have a good day.


More information about the TYPO3-english mailing list