[ PHPXref.com ] [ Generated: Sun Jul 20 19:47:34 2008 ] [ phpMyFAQ 1.6.1 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/ -> _.htaccess (source)

   1  ##
   2  #
   3  # phpMyFAQ 1.6 .htaccess file
   4  #
   5  # @author       Thorsten Rinne <thorsten@phpmyfaq.de>
   6  # @author       Patrick Preuster <sica@php-q.net>
   7  # @since        2004-11-13
   8  # @copyright    (c) 2004-2006 phpMyFAQ Team
   9  #
  10  # The contents of this file are subject to the Mozilla Public License
  11  # Version 1.1 (the "License"); you may not use this file except in
  12  # compliance with the License. You may obtain a copy of the License at
  13  # http://www.mozilla.org/MPL/
  14  #
  15  # Software distributed under the License is distributed on an "AS IS"
  16  # basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
  17  # License for the specific language governing rights and limitations
  18  # under the License.
  19  #
  20  ##
  21  
  22  # if you want to use mod_rewrite, set this 'On'
  23  RewriteEngine On
  24  
  25  # the path to your phpMyFAQ installation
  26  RewriteBase /phpmyfaq/
  27  
  28  # show all categories
  29  RewriteCond %{REQUEST_URI}          showcat\.html$ [NC]
  30  RewriteRule ^(.*)$                  index.php?action=show [L,QSA]
  31  
  32  # the search page
  33  RewriteCond %{REQUEST_URI}          search\.html$ [NC]
  34  RewriteRule ^(.*)$                  index.php?action=search [L,QSA]
  35  
  36  # the add content page
  37  RewriteCond %{REQUEST_URI}          addcontent\.html$ [NC]
  38  RewriteRule ^(.*)$                  index.php?action=add [L,QSA]
  39  
  40  # the ask question page
  41  RewriteCond %{REQUEST_URI}          ask\.html$ [NC]
  42  RewriteRule ^(.*)$                  index.php?action=ask [L,QSA]
  43  
  44  # the open questions page
  45  RewriteCond %{REQUEST_URI}          open\.html$ [NC]
  46  RewriteRule ^(.*)$                  index.php?action=open [L,QSA]
  47  
  48  # the help page
  49  RewriteCond %{REQUEST_URI}          help\.html$ [NC]
  50  RewriteRule ^(.*)$                  index.php?action=help [L,QSA]
  51  
  52  # the contact page
  53  RewriteCond %{REQUEST_URI}          contact\.html$ [NC]
  54  RewriteRule ^(.*)$                  index.php?action=contact [L,QSA]
  55  
  56  # a page with a record
  57  RewriteCond %{REQUEST_URI}          ([0-9]+)_([0-9]+)_([a-z\-]+)\.html$ [NC]
  58  RewriteRule ^(.*)_(.*)_(.*)\.html$  index.php?action=artikel&cat=$1&id=$2&artlang=$3 [L,QSA]
  59  
  60  # a category page
  61  RewriteCond %{REQUEST_URI}              category([0-9]+)\.html$ [NC]
  62  RewriteRule ^category(.*)\.html$        index.php?action=show&cat=$1 [L,QSA]
  63  
  64  # a category page with page count
  65  RewriteCond %{REQUEST_URI}              category([0-9]+)_([0-9]+)\.html$ [NC]
  66  RewriteRule ^category(.*)_(.*)\.html$   index.php?action=show&cat=$1&seite=$2 [L,QSA]
  67  
  68  # start page
  69  RewriteRule index.html$ index.php [PT]
  70  
  71  # sitemap
  72  RewriteCond %{REQUEST_URI}              sitemap-([a-zA-Z0-9äöüÄÖÜß]*)_([a-z\-]+)\.html$ [NC]
  73  RewriteRule ^sitemap-(.*)_(.*)\.html$   index.php?action=sitemap&letter=$1&lang=$2 [L,QSA]
  74  
  75  # a solution id page
  76  RewriteCond %{REQUEST_URI}              solution_id_([0-9]+)\.html$ [NC]
  77  RewriteRule ^solution_id_(.*)\.html$    index.php?solution_id=$1 [L,QSA]


[ Powered by PHPXref - Served by Debian GNU/Linux ]