RealURL Multisite / Multidomain config

  1. <?php
  2. # Domains mit Root PID
  3. $RootPID = array(
  4. 'mc-bit.de' => '1',
  5. 'www.mc-bit.de' => '1',
  6. );
  7.  
  8. $TYPO3_CONF_VARS['FE']['addRootLineFields'].= ',tx_realurl_pathsegment';
  9. $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
  10. 'pagePath' => array(
  11. 'type' => 'user',
  12. 'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
  13. 'spaceCharacter' => '-',
  14. 'languageGetVar' => 'L',
  15. 'expireDays' => '3',
  16. 'rootpage_id' => $RootPID[$_SERVER['HTTP_HOST']],
  17. 'firstHitPathCache' => 1
  18. ),
  19. 'init' => array(
  20. 'enableCHashCache' => TRUE,
  21. 'enableCHashCache' => 1,
  22. 'respectSimulateStaticURLs' => 0,
  23. 'enableUrlDecodeCache' => 1,
  24. 'enableUrlEncodeCache' => 1
  25. ),
  26. 'preVars' => array(
  27. array(
  28. 'GETvar' => 'L',
  29. 'valueMap' => array(
  30. 'en' => '1',
  31. ),
  32. 'noMatch' => 'bypass',
  33. ),
  34. array(
  35. 'GETvar' => 'no_cache',
  36. 'valueMap' => array(
  37. 'nc' => 1,
  38. ),
  39. 'noMatch' => 'bypass',
  40. ),
  41. ),
  42. 'fixedPostVars' => array(
  43. // News
  44. 'newsDetailConfiguration' => array(
  45. array(
  46. 'GETvar' => 'tx_news_pi1[news]',
  47. 'lookUpTable' => array(
  48. 'table' => 'tx_news_domain_model_news',
  49. 'id_field' => 'uid',
  50. 'alias_field' => 'title',
  51. 'addWhereClause' => ' AND NOT deleted',
  52. 'useUniqueCache' => 1,
  53. 'useUniqueCache_conf' => array(
  54. 'strtolower' => 1,
  55. 'spaceCharacter' => '-'
  56. ),
  57. 'languageGetVar' => 'L',
  58. 'languageExceptionUids' => '',
  59. 'languageField' => 'sys_language_uid',
  60. 'transOrigPointerField' => 'l10n_parent',
  61. 'autoUpdate' => 1,
  62. 'expireDays' => 180,
  63. )
  64. )
  65. ),
  66. 'newsCategoryConfiguration' => array(
  67. array(
  68. 'GETvar' => 'tx_news_pi1[overwriteDemand][categories]',
  69. 'lookUpTable' => array(
  70. 'table' => 'tx_news_domain_model_category',
  71. 'id_field' => 'uid',
  72. 'alias_field' => 'title',
  73. 'addWhereClause' => ' AND NOT deleted',
  74. 'useUniqueCache' => 1,
  75. 'useUniqueCache_conf' => array(
  76. 'strtolower' => 1,
  77. 'spaceCharacter' => '-'
  78. )
  79. )
  80. )
  81. ),
  82. 'newsTagConfiguration' => array(
  83. array(
  84. 'GETvar' => 'tx_news_pi1[overwriteDemand][tags]',
  85. 'lookUpTable' => array(
  86. 'table' => 'tx_news_domain_model_tag',
  87. 'id_field' => 'uid',
  88. 'alias_field' => 'title',
  89. 'addWhereClause' => ' AND NOT deleted',
  90. 'useUniqueCache' => 1,
  91. 'useUniqueCache_conf' => array(
  92. 'strtolower' => 1,
  93. 'spaceCharacter' => '-'
  94. )
  95. )
  96. )
  97. ),
  98. '75' => 'newsDetailConfiguration',
  99. '83' => 'newsDetailConfiguration',
  100. '99' => 'newsDetailConfiguration',
  101. //'701' => 'newsDetailConfiguration', // For additional detail pages, add their uid as well
  102. //'71' => 'newsTagConfiguration',
  103. //'72' => 'newsCategoryConfiguration',
  104. ),
  105. 'postVarSets' => array(
  106. '_DEFAULT' => array(
  107. // News
  108. 'controller' => array(
  109. array(
  110. 'GETvar' => 'tx_news_pi1[action]',
  111. 'noMatch' => 'bypass'
  112. ),
  113. array(
  114. 'GETvar' => 'tx_news_pi1[controller]',
  115. 'noMatch' => 'bypass'
  116. )
  117. ),
  118. 'dateFilter' => array(
  119. array(
  120. 'GETvar' => 'tx_news_pi1[overwriteDemand][year]',
  121. ),
  122. array(
  123. 'GETvar' => 'tx_news_pi1[overwriteDemand][month]',
  124. ),
  125. ),
  126. 'page' => array(
  127. array(
  128. 'GETvar' => 'tx_news_pi1[@widget_0][currentPage]',
  129. ),
  130. ),
  131. ),
  132. ),
  133. // metaseo
  134. 'fileName' => array(
  135. 'defaultToHTMLsuffixOnPrev' => false,
  136. 'index' => array(
  137. 'sitemap.xml' => array(
  138. 'keyValues' => array(
  139. 'type' => 841132,
  140. ),
  141. ),
  142. 'sitemap.txt' => array(
  143. 'keyValues' => array(
  144. 'type' => 841131,
  145. ),
  146. ),
  147. 'robots.txt' => array(
  148. 'keyValues' => array(
  149. 'type' => 841133,
  150. ),
  151. ),
  152. '_DEFAULT' => array(
  153. 'keyValues' => array(
  154. 'type' => 0,
  155. )
  156. ),
  157. ),
  158. ),
  159. );