[ PHPXref.com ] [ Generated: Sun Jul 20 20:18:29 2008 ] [ Siteframe 5.0.2 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/ -> _htaccess (source)

   1  # $Id: _htaccess,v 1.29 2006/02/16 14:40:02 glen Exp $
   2  # Copyright (c)2004-2005, Glen Campbell. All rights reserved.
   3  # See LICENSE.txt for details.
   4  # This file provides site-friendly errors and URL-rewriting.
   5  # THIS FILE ALSO ENABLES IMPORTANT SECURITY RESTRICTIONS; IT SHOULD
   6  # BE INSTALLED AS .htaccess EVEN IF URL REWRITING IS NOT USED.
   7  
   8  ### NOTE: if your site is not installed in the Root Directory (/), you
   9  ### should change the value of RewriteBase (below) to match your path.
  10  
  11  #
  12  # define custom error pages
  13  #
  14  ErrorDocument 401 /error.php?code=401
  15  ErrorDocument 403 /error.php?code=403
  16  ErrorDocument 404 /error.php?code=404
  17  ErrorDocument 500 /error.php?code=500
  18  
  19  #
  20  # disallow access to *.inc, *.ini, and *.tpl files
  21  #
  22  <Files ~ "\.(inc|ini|tpl|sql|sh)$">
  23      Order allow,deny
  24      Deny from all
  25      Satisfy All
  26  </Files>
  27  
  28  #
  29  # URL rewriting to convert .../u/myname to .../user.php?name=myname
  30  #
  31  # If your website is not in the root directory,
  32  # change the RewriteBase to match the directory path
  33  #
  34  RewriteEngine On
  35  RewriteBase /
  36  RewriteRule ^api/V([0-9]+)/([a-zA-Z0-9_]+)$ api.php?v=$1&r=$2       [L,QSA]
  37  RewriteRule ^api/V([0-9]+)/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)$ api.php?v=$1&r=$2&id=$3 [L,QSA]
  38  RewriteRule ^xmas$                  xmas.php                        [L,QSA]
  39  RewriteRule ^adhoc/([a-z_A-Z0-9-]+)$ text.php?id=$1                  [L,QSA]
  40  RewriteRule ^edit/([^/]+)/(.+)$     edit.php?c=$1&id=$2             [L,QSA]
  41  RewriteRule ^edit/(.+)$             edit.php?c=$1                   [L,QSA]
  42  RewriteRule ^group/(.+)$            group.php?id=$1                 [L,QSA]
  43  RewriteRule ^p/([a-z_A-Z0-9-]+)$     page.php?tag=$1                 [L,QSA]
  44  RewriteRule ^plugin/([^/]+)$        plugin.php?p=$1                 [L,QSA]
  45  RewriteRule ^tag/([a-z_A-Z0-9_\.\-]+)$ tag.php?tag=$1               [L,QSA]
  46  RewriteRule ^tags/([a-z_A-Z0-9-]+)$  tags.php?u=$1                   [L,QSA]
  47  RewriteRule ^tags/?$                tags.php                        [L,QSA]
  48  RewriteRule ^u/([a-z_A-Z0-9-]+)$     user.php?name=$1                [L,QSA]
  49  RewriteRule ^rss$                   rss.php?%{QUERY_STRING}         [L,QSA]
  50  RewriteRule ^rss/u/(.+)$            rss.php?user=$1                 [L,QSA]
  51  RewriteRule ^rss/favorites/(.+)$    rss.php?favorites=$1            [L,QSA]
  52  RewriteRule ^rss/group/(.+)$        rss.php?group=$1                [L,QSA]
  53  RewriteRule ^rss/tag/(.+)$          rss.php?tag=$1                  [L,QSA]
  54  RewriteRule ^rss/toprated$          rss.php?type=toprated           [L,QSA]
  55  RewriteRule ^rss/(.+)$              rss.php?folder=$1               [L,QSA]
  56  RewriteRule ^([a-zA-Z0-9_-]+)$       folder.php?tag=$1               [L,QSA]


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