[ PHPXref.com ] [ Generated: Sun Jul 20 20:38:18 2008 ] [ Tikiwiki 1.9.2 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/doc/ -> htaccess (source)

   1  # $Id: htaccess,v 1.2.14.1 2005/01/04 09:51:40 damosoft Exp $
   2  
   3  #AuthUserFile "C:/Program Files/Apache Group/Apache/bin/users"
   4  #AuthName EnterPassword
   5  #AuthType Basic
   6  #
   7  #<LIMIT GET POST>
   8  #require valid-user
   9  #</LIMIT>
  10  
  11  # this can be required to force utf-8 charset by default
  12  #     AddDefaultCharset utf-8
  13  # alternatively you can just enable auto-detection
  14  #     AddDefaultCharset off
  15  
  16  #<FilesMatch "\.(bak|inc|lib|sh|sql|tpl)$">
  17  #    order deny,allow
  18  #    deny from all
  19  #</FilesMatch>
  20  
  21  #<FilesMatch "^\.#">
  22  #    order deny,allow
  23  #    deny from all
  24  #</FilesMatch>
  25  
  26  #<FilesMatch "^CVS$">
  27  #    order deny,allow
  28  #    deny from all
  29  #</FilesMatch>
  30  
  31  <IfModule mod_rewrite.c>
  32      RewriteEngine On
  33      
  34      # direct one-word access
  35      RewriteRule ^articles/?$           /tiki-view_articles.php                   [L]
  36      RewriteRule ^blogs/?$              /tiki-list_blogs.php                      [L]
  37      RewriteRule ^categories/?$         /tiki-browse_categories.php               [L]
  38      RewriteRule ^charts/?$             /tiki-list_charts.php                     [L]
  39      RewriteRule ^chat/?$               /tiki-chat.php                            [L]
  40      RewriteRule ^contact/?$            /tiki-contact.php                         [L]
  41      RewriteRule ^directories/?$        /tiki-directory_browse.php                [L]
  42      RewriteRule ^eph/?$                /tiki-eph.php                             [L]
  43      RewriteRule ^faqs/?$               /tiki-list_faqs.php                       [L]
  44      RewriteRule ^files/?$              /tiki-file_galleries.php                  [L]
  45      RewriteRule ^forums/?$             /tiki-forums.php                          [L]
  46      RewriteRule ^galleries/?$          /tiki-galleries.php                       [L]
  47      RewriteRule ^games/?$              /tiki-list_games.php                      [L]
  48      RewriteRule ^images/?$             /tiki-galleries.php                       [L]
  49      RewriteRule ^irc/?$                /tiki-view_irc.php                        [L]
  50      RewriteRule ^my/?$                 /tiki-my_tiki.php                         [L]
  51      RewriteRule ^newsletters/?$        /tiki-newsletters.php                     [L]
  52      RewriteRule ^quizzes/?$            /tiki-list_quizzes.php                    [L]
  53      RewriteRule ^stats/?$              /tiki-stats.php                           [L]
  54      RewriteRule ^surveys/?$            /tiki-list_surveys.php                    [L]
  55      RewriteRule ^trackers/?$           /tiki-list_trackers.php                   [L]
  56  
  57      # access any object by its numeric identifier
  58      RewriteRule ^article/?([0-9]+)       /tiki-read_article.php?articleId=$1       [QSA,L]
  59      RewriteRule ^blog/?([0-9]+)          /tiki-view_blog.php?blogId=$1             [QSA,L]
  60      RewriteRule ^chart/?([0-9]+)         /tiki-view_chart.php?chartId=$1           [QSA,L]
  61      RewriteRule ^directory/?([0-9]+)     /tiki-directory_browse.php?parent=$1      [QSA,L]
  62      RewriteRule ^dl/?([0-9]+)            /tiki-download_file.php?fileId=$1         [QSA,L]
  63      RewriteRule ^eph/?([0-9]+)           /tiki-directory_browse.php?parent=$1      [QSA,L]
  64      RewriteRule ^faq/?([0-9]+)           /tiki-view_faq.php?faqId=$1               [QSA,L]
  65      RewriteRule ^file/?([0-9]+)          /tiki-list_file_gallery.php?galleryId=$1  [QSA,L]
  66      RewriteRule ^forum/?([0-9]+)         /tiki-view_forum.php?forumId=$1           [QSA,L]
  67      RewriteRule ^gallery/?([0-9]+)       /tiki-browse_gallery.php?galleryId=$1     [QSA,L]
  68      RewriteRule ^image/?([0-9]+)         /tiki-browse_gallery.php?galleryId=$1     [QSA,L]
  69      RewriteRule ^irc/?([0-9]+)$          /tiki-view_irc.php?date=$1                [QSA,L]
  70      RewriteRule ^irc/?([A-Za-z0-9]+)$    /tiki-view_irc.php?channel=$1             [QSA,L]
  71      RewriteRule ^irc/?([A-Za-z0-9]+)/([0-9]+) /tiki-view_irc.php?channel=$1&date=$2 [QSA,L]
  72      RewriteRule ^newsletter/?([0-9]+)    /tiki-newsletters.php?nlId=$1             [QSA,L]
  73      RewriteRule ^page/([-_\+A-Za-z0-9]+) /tiki-index.php?page=$1                   [QSA,L]
  74      RewriteRule ^quiz/?([0-9]+)          /tiki-take_quiz.php?quizId=$1             [QSA,L]
  75      RewriteRule ^survey/?([0-9]+)        /tiki-take_survey.php?surveyId=$1         [QSA,L]
  76      RewriteRule ^tracker/?([0-9]+)       /tiki-view_tracker.php?trackerId=$1       [QSA,L]
  77      RewriteRule ^wiki/([-_\+A-Za-z0-9]+) /tiki-index.php?page=$1                   [QSA,L]
  78  
  79      # todo add support for all characters allowed in a Wiki name
  80      # make sure this is the last rule!
  81      RewriteRule    ([-_\+A-Za-z0-9]+)$    /tiki-index.php?page=$1                   [QSA,L]
  82  </IfModule>


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