[ PHPXref.com ] [ Generated: Sun Jul 20 19:10:18 2008 ] [ Orange 1.1 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/ -> htaccess (source)

   1  #
   2  # Apache/PHP/site settings:
   3  #
   4  
   5  # Protect files and directories from prying eyes:
   6  <Files ~ "(\.(conf|inc|module|pl|sh|sql|theme)|Entries|Repositories|Root|scripts|updates)$">
   7    order deny,allow
   8    deny from all
   9  </Files>
  10  
  11  # Set some options
  12  Options Indexes
  13  Options FollowSymLinks
  14  
  15  # Set the default handler to index.php:
  16  DirectoryIndex index.php index.html
  17  
  18  # Overload PHP variables:
  19  php_flag magic_quotes_gpc Off
  20  
  21  <IfModule mod_rewrite.c>
  22    RewriteEngine on
  23  
  24    RewriteBase /
  25  
  26    RewriteCond %{REQUEST_FILENAME} !-f
  27    RewriteCond %{REQUEST_FILENAME} !-d
  28    RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
  29  </IfModule>
  30  


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