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

Documentation generated on Sun, 08 Feb 2009 22:00:47 +0100 by phpDocumentor 1.4.1