[TYPO3-Solr] Multiple sites and news url
Aart de Bruijn
aart at brownentertainment.nl
Wed Jan 16 13:24:40 CET 2013
Hi
On 16-01-13 13:08, Jigal van Hemert wrote:
> On 16-1-2013 12:24, Aart de Bruijn wrote:
>> On 16-01-13 12:07, Jigal van Hemert wrote:
>>> On 16-1-2013 11:25, Aart de Bruijn wrote:
>>>> First things first, as the my problem is with the url.
>>>> 49/?tx_ttnews[tt_news]=163&cHash=e827aafa5086585cb734b4666f7d3858
>>>> where
>>>> ?id=49&tx_ttnews[tt_news]=163&cHash=e827aafa5086585cb734b4666f7d3858
>>>> will direct to the correct url.
>>>
>>> The first one looks like a url generated by RealURL where the domain
>>> isn't defined correctly in the RealURL config.
>>>
>> The realurl config line for this site is
>> $TYPO3_CONF_VARS['EXTCONF']['realurl']['environment.subdomain.domain.com']['pagePath']['rootpage_id']
>>
>> = 40;
>> How can I check if it's configured correctly? The root page id is
>> correct and realurls are created properly (also for the news page)
>>
>> The ?id=49&tx_ttnews[tt_news]=163&cHash=e827aafa5086585cb734b4666f7d3858
>> was an example to show what the url should be for realurl to rewrite it
>> to the correct one.
>
> Solr uses typolink to generate urls, so if RealUrl is active it will
> generate realurls.
> Solr needs a domain record in each pagetree (if you have multiple domain
> in a single installation each tree must have its own domain record). If
> you have more than one domain record in a (sub)tree it will use the
> first domain record.
>
> If you have your news records outside a pagetree you can include the
> records in one of the configurations by defining the pid of the news
> records in additionalPageIds [1].
>
> [1]
> http://forge.typo3.org/projects/extension-solr/wiki/Tx_solrindex#queueindexingConfigurationadditionalPageIds
>
>
The domain records are set up for every site, and the top ones. The
pages do get indexed for every subdomain.
Thanks for the link about the additional page id's, I know about this,
but it's step 4 in this process ;-), first I focus on this wrong url.
In this case the news items from one subdomain, which are located in its
own page tree give me troubles with the url, and I don't have a clue.
Any other suggestions?
The domains format is environment.subdomain.domain.com, could this
environment in the url have something to do with it?
More information about the TYPO3-project-solr
mailing list