Source for file config.mod_rewrite_default.php

Documentation is available at config.mod_rewrite_default.php

  1. <?php
  2. /**
  3.  * Plugin Advanced Mod Rewrite default settings. This file will be included if mod rewrite settings
  4.  * of an client couldn't loaded.
  5.  * 
  6.  * Containing settings are taken over from contenido-4.6.15mr setup installer template beeing made
  7.  * originally by stese.
  8.  * 
  9.  * NOTE:
  10.  * Changes in these Advanced Mod Rewrite settings will affect all clients, as long as the don't have
  11.  * their own configuration.
  12.  *
  13.  * @author      Murat Purc <murat@purc.de>
  14.  * @copyright   © Murat Purc 2008
  15.  * @package     Contenido
  16.  * @subpackage  ModRewrite
  17.  */
  18.  
  19. global $cfg;
  20.  
  21. // Use advanced mod_rewrites  ( 1 = yes, 0 = none )
  22. $cfg['mod_rewrite']['use'0;
  23.  
  24. // Path to the htaccessfile with trailling slash from domain-root!
  25. $cfg['mod_rewrite']['rootdir''/';
  26.  
  27. // Start TreeLocation from Root Tree (set to 1) or get location from first category (set to 0)
  28. $cfg['mod_rewrite']['startfromroot'0;
  29.  
  30. // is multilanguage? ( 1 = yes, 0 = none )
  31. $cfg['mod_rewrite']['use_language'0;
  32.  
  33. // use language name in url? ( 1 = yes, 0 = none )
  34. $cfg['mod_rewrite']['use_language_name'0;
  35.  
  36. // is multiclient in only one directory? ( 1 = yes, 0 = none )
  37. $cfg['mod_rewrite']['use_client'0;
  38.  
  39. // use client name in url? ( 1 = yes, 0 = none )
  40. $cfg['mod_rewrite']['use_client_name'0;
  41.  
  42. // use lowercase url? ( 1 = yes, 0 = none )
  43. $cfg['mod_rewrite']['use_lowercase_uri'1;
  44.  
  45. // file extension for article links
  46. $cfg['mod_rewrite']['file_extension''.html';
  47.  
  48. // The percentage if the category name have to match with database names.
  49. $cfg['mod_rewrite']['category_resolve_min_percentage''75';
  50.  
  51. // Add start article name to url (1 = yes, 0 = none)
  52. $cfg['mod_rewrite']['add_startart_name_to_url'1;
  53.  
  54. // Default start article name to use, depends on active add_startart_name_to_url
  55. $cfg['mod_rewrite']['default_startart_name''index';
  56.  
  57. // Rewrite urls on generating the code for the page. If active, the responsibility will be 
  58. // outsourced to moduleoutputs and you have to adapt the moduleoutputs manually. Each output of 
  59. // internal article/category links must be processed by using $sess->url. (1 = yes, 0 = none)
  60. $cfg['mod_rewrite']['rewrite_urls_at_congeneratecode'0;
  61.  
  62. // Rewrite urls on output of htmlcode at front_content.php. Is the old way, and doesn't require
  63. // adapting of moduleoutputs. On the other hand usage of this way will be slower than rewriting 
  64. // option above. (1 = yes, 0 = none)
  65. $cfg['mod_rewrite']['rewrite_urls_at_front_content_output'1;
  66.  
  67.  
  68. // Following five settings write urls like this one:
  69. //     www.domain.de/category1-category2.articlename.html
  70. // Changes of these settings causes a reset of all aliases, see Advanced Mod Rewrite settings in 
  71. // backend.
  72. // NOTE: category_seperator and article_seperator must contain different character.
  73.  
  74. // Use categories as html file part? ( 1 = yes, 0 = none )
  75. $cfg['mod_rewrite']['use_categories_as_html_file'0;
  76.  
  77. // Seperator for categories
  78. $cfg['mod_rewrite']['category_seperator''-';
  79.  
  80. // Seperator between category and article
  81. $cfg['mod_rewrite']['article_seperator''.';
  82.  
  83. // Word seperator in category names
  84. $cfg['mod_rewrite']['category_word_seperator''_';
  85.  
  86. // Word seperator in article names
  87. $cfg['mod_rewrite']['article_word_seperator''-';
  88.  
  89.  
  90. // Routing settings for incomming urls. Here you can define routing rules as follows:
  91. // $cfg['mod_rewrite']['routing'] = array(
  92. //    '/a_incomming/url/foobar.html' => '/new_url/foobar.html',  # route /a_incomming/url/foobar.html to /new_url/foobar.html
  93. //    '/cms/' => '/' # route /cms/ to / (doc root of client)
  94. // );
  95. $cfg['mod_rewrite']['routing'array();
  96.  
  97.  
  98. // Redirect invalid articles to errorpage (1 = yes, 0 = none)
  99. $cfg['mod_rewrite']['redirect_invalid_article_to_errorsite'0;

Documentation generated on Mon, 26 May 2008 19:42:11 +0200 by phpDocumentor 1.4.0