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. // Prevent Duplicated Content, if startfromroot is enabled ( 1 = yes, 0 = none )
  40. $cfg['mod_rewrite']['prevent_duplicated_content'0;
  41.  
  42. // is multilanguage? ( 1 = yes, 0 = none )
  43. $cfg['mod_rewrite']['use_language'0;
  44.  
  45. // use language name in url? ( 1 = yes, 0 = none )
  46. $cfg['mod_rewrite']['use_language_name'0;
  47.  
  48. // is multiclient in only one directory? ( 1 = yes, 0 = none )
  49. $cfg['mod_rewrite']['use_client'0;
  50.  
  51. // use client name in url? ( 1 = yes, 0 = none )
  52. $cfg['mod_rewrite']['use_client_name'0;
  53.  
  54. // use lowercase url? ( 1 = yes, 0 = none )
  55. $cfg['mod_rewrite']['use_lowercase_uri'1;
  56.  
  57. // file extension for article links
  58. $cfg['mod_rewrite']['file_extension''.html';
  59.  
  60. // The percentage if the category name have to match with database names.
  61. $cfg['mod_rewrite']['category_resolve_min_percentage''75';
  62.  
  63. // Add start article name to url (1 = yes, 0 = none)
  64. $cfg['mod_rewrite']['add_startart_name_to_url'1;
  65.  
  66. // Default start article name to use, depends on active add_startart_name_to_url
  67. $cfg['mod_rewrite']['default_startart_name''index';
  68.  
  69. // Rewrite urls on generating the code for the page. If active, the responsibility will be
  70. // outsourced to moduleoutputs and you have to adapt the moduleoutputs manually. Each output of
  71. // internal article/category links must be processed by using $sess->url. (1 = yes, 0 = none)
  72. $cfg['mod_rewrite']['rewrite_urls_at_congeneratecode'0;
  73.  
  74. // Rewrite urls on output of htmlcode at front_content.php. Is the old way, and doesn't require
  75. // adapting of moduleoutputs. On the other hand usage of this way will be slower than rewriting
  76. // option above. (1 = yes, 0 = none)
  77. $cfg['mod_rewrite']['rewrite_urls_at_front_content_output'1;
  78.  
  79.  
  80. // Following five settings write urls like this one:
  81. //     www.domain.de/category1-category2.articlename.html
  82. // Changes of these settings causes a reset of all aliases, see Advanced Mod Rewrite settings in
  83. // backend.
  84. // NOTE: category_seperator and article_seperator must contain different character.
  85.  
  86. // Separator for categories
  87. $cfg['mod_rewrite']['category_seperator''-';
  88.  
  89. // Separator 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 Tue, 25 Nov 2008 22:07:31 +0100 by phpDocumentor 1.4.1