This is an old revision of the document!
This file (urlresources.txt) is located under the cfg directory and contain all the url definitions (like translations of each url for exemple). below the format of each items:
[URL_ID|PAGE_ID]<Param1=a><Param2=b>..<ParamN=z> LANGUAGE_ID = URL_PATH
the URL_ID is an arbitrary name you gave to the item. If omitted then URL_ID = PAGE_ID
the PAGE_ID is the path found in the cfgpages. for exemple
if in the cfgpages you have theses nodes :
<page name='/'> <page name='about'> <page name='careers'> </page> </page> </page>
that mean you have these 3 Page ID
then in the UrlResources.txt you would have these 3 items :
[/] FRA = / RUS = / USA = / PTG = / ESP = / DEU = / [/about/] FRA = [/]a-propos/ RUS = [/]about/ USA = [/]about/ PTG = [/]about/ ESP = [/]about/ DEU = [/]about/ [/about/careers/] FRA = [/about/]recrutement/ RUS = [/about/]careers/ USA = [/about/]careers/ PTG = [/about/]careers ESP = [/about/]careers/ DEU = [/about/]careers/
Note: The FRA = [/about/]recrutement/ will be converted to FRA = /a-propos/recrutement/
Another exemple with params :
[/real-estate/commercial/for-sale/]<url_property_category=2><url_transaction_type=1> FRA = /immobilier/entreprise/vente/ RUS = /real-estate/commercial/for-sale/ USA = /real-estate/commercial/for-sale/
This instruct the engine that url_property_category = 2 (commercial) and that url_transaction_type = 1 (for sale). these params can be used later by the search engine to define the default property category and/or the default transaction type
URL_PATH can contain some tags like :
for /real-estate/for-sale/cannes/ url_GeoPlace_Path = cannes/ IF Shorten <> 1 then: The ID of the geo place can be found without error thanks to the params parent_GeoPlace_ID IF parent_GeoPlace_ID = FR-241095-241110 (alpes-maritimes) then url_GeoPlace_Path = cannes/ IF parent_GeoPlace_ID = FR-241095 (provence-alpes-cote-d-azur) then url_GeoPlace_Path = alpes-maritimes/cannes/ IF parent_GeoPlace_ID = FR (france) then url_GeoPlace_Path = provence-alpes-cote-d-azur/alpes-maritimes/cannes/ IF parent_GeoPlace_ID = '',XW,XA,XE,XI,etc. (empty, world or continent) then url_GeoPlace_Path = france/provence-alpes-cote-d-azur/alpes-maritimes/cannes/ IF Shorten = 1 then: url_GeoPlace_Path = cannes-241110/ (label-GeoPlaceID)
This file can contain also HTTP redirect mapping instructions. Ex
=>301 [/forums/f2/] DEU = [/forums/] ESP = [/forums/] FRA = [/forums/] PTG = [/forums/] RUS = [/forums/] USA = [/forums/]
This instruct to redirect (Http 301 redirect) [/forums/] to [/forums/f2/]
Also this file must contain some const declarations like