.htaccess 2.38 KB
# This file sets up the necessary PHP settings to run KnowledgeTree
# optimally.
#
# It is best that KnowledgeTree be allowed to manage its PHP and access
# permissions using these .htaccess files.  This prevents direct access
# to libraries, scripts, and documents that should not be available via
# the web.
#
# By default, to facilitate quick testing of functionality,
# KnowledgeTree places the Documents directory within the KnowledgeTree
# web root.  This, by default, would allow people to browse the
# documents in the DMS, bypassing the security permissions.  The
# default .htaccess settings would prevent this.
#
# KnowledgeTree itself is able to deal with most PHP configurations,
# excepting "safe mode" currently, but is unable to handle certain
# inherent configuration options (for example, setting the upload size
# very low).  Check the setup checklists (as described in the
# documentation) to see how your configuration is handled.
#
# The default .htaccess settings ensure that no workarounds occur in the
# PHP code, leading to better performance and robustness.
#
<IfModule mod_php4.c>
 default_mimetype text/html
 auto_prepend_file none
 auto_append_file none
 display_startup_errors ON
 display_errors ON
 file_uploads ON
 magic_quotes_gpc OFF
 magic_quotes_runtime OFF
 register_globals OFF
 output_buffering OFF
 session.auto_start OFF
</IfModule>
<IfModule mod_env.c>
SetEnv kt_htaccess_worked yes
</IfModule>
LimitRequestBody 0
DirectoryIndex index.html index.php
Options none

#
# If you are having uploading larger documents, adjust the 16M examples
# below to increase the maximum file size.  This is set to a reasonable
# size for testing and most usage patterns, as increased sizes may allow
# malicious users to use up resources.
#
<IfModule mod_php4.c>
 upload_max_filesize 16M
 post_max_size 16M
 memory_limit 16M
 max_input_time -1
 max_execution_time 60
</IfModule>

#<IfModule mod_negotiation.c>
#Options +MultiViews
#<IfModule mod_env.c>
#SetEnv kt_no_extensions yes
#</IfModule>
#</IfModule>
#<IfModule !mod_negotiation.c>
#<IfModule mod_rewrite.c>
#RewriteEngine On
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME}.php -f
#RewriteRule ^(.*)$ $1.php
#<IfModule mod_env.c>
#SetEnv kt_no_extensions yes
#</IfModule>
#</IfModule>
#</IfModule>