rtf-editor had mixed up some files
[moodle.git] / lib / htaccess
CommitLineData
af90e74e 1# On some PHP servers it may help if this file is copied
a9858957 2# to the main moodle directory and renamed .htaccess
af90e74e 3#
04ad372d 4# As soon as you do this, check your web site. Is it
5# still working OK? If you are getting a "configuration
6# error" then you may need to enable overrides by editing
7# the main httpd.conf for Apache and in the main server
8# or virtual server area, adding something like:
9#
10# <Directory /web/moodle>
11# AllowOverride All
12# </Directory>
13#
96dad0de 14### Firstly, set up some PHP variables that Moodle needs
04ad372d 15
a09b86a6 16php_value magic_quotes_gpc On
17php_value magic_quotes_runtime Off
18php_value file_uploads On
19php_value short_open_tag On
20php_value session.auto_start Off
21php_value session.bug_compat_warn Off
04ad372d 22
96dad0de 23### These are optional - you may not want to override php.ini
a09b86a6 24### To enable them, remove the leading hash (#)
04ad372d 25
af90e74e 26#php_value upload_max_filesize 2M
27#php_value post_max_size 2M
a09b86a6 28#php_value session.gc_maxlifetime 7200
04ad372d 29
96dad0de 30### Optional definition of default files
31
32#DirectoryIndex index.php index.html index.htm
33
34
35### Change the following line to point to the error/index.php
36### file in your Moodle distribution. It provides a form
37### which emails you (the admin) about 404 errors.
04ad372d 38
39#ErrorDocument 404 http://example.org/moodle/error/index.php