[TYPO3-dev] Strange RealURL Problem
Patrick Lobacher
plobacher at n-o-g.de
Tue May 26 14:54:41 CEST 2009
Hi Dmitry, hi list,
I have a strange RealURL problem which I tried to solve for about a week
- but I have no clue:
My Setup:
All users (15 people) work on an IP-Server - lets say: 123.123.123.123/typo3
On this installation we have about 40 domains - properly configured with
RealURL - which works great (for the frontend so far).3
e.g.
www.domain1.de (rootpage_id = 1)
www.domain2.de (rootpage_id = 2)
www.domain3.de (rootpage_id = 3)
...
Although it would be possible to login directly in the domains typo3
account with www.domain.de/typo3 the users want to login just once into
the IP address and there it should be possible to add pages, change
content, ... for all domains.
The problem is now, that the users want to have a preview to the page
they have created. So they click on the icon in the page tree and choose
"show". The frontend trys to load with the url like
123.123.123.123/index.php?id=pageid
In this case I get an error message which says "Reason: RealUrl error:
multidomain configuration without rootpage_id!". I have added an entry
for the IP-Adress to realurl config (I used the rootpage_id = 1):
$TYPO3_CONF_VARS['EXTCONF']['realurl']['123.123.123.123']['pagePath']['rootpage_id']
= 1;
Now everything works, I can preview the page and all links are properly
generated there.
But if I now add a page in the pagetree of www.domain2.de the
rootpage_id = 1 (which is configured as I still work on the IP-Server)
is saved with the realurl entry (but it should of course save the value
"2" - see below). So if I want to view the page in the frontend I get an
error of course - as the page doesn't match to the rootpage_id.
What I've worked out so far are the following (possible) solutions:
1.) Delete the realurl config entry for the IP (then everything works
except preview). Is it possible to expand the "show" functionality that
it will prefix the preview link with the domain from the sys_domain
record (instead of the IP?)
2.) Change the realurl config everytime someone wants to add a page to
the rootpage_id of this domain the user is working in. Not really an
option as 15 people work simultaneously in all domains
3.) Forbid preview - not an option too. They want to preview through the
IP-Adress (they are to lazy just to type in the normal URL)
4.) ????
Thanks a lot for your thoughts...
Patrick
More information about the TYPO3-dev
mailing list