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

Documentation generated on Sun, 03 Aug 2008 22:21:54 +0200 by phpDocumentor 1.4.0