View file .htaccess

File size: 1.46Kb
<Files ~ ".dat$|.htaccess$|.htpasswd$|.cfg$|.inc$|.ini$|.inc.php$|.class.php$|config.php$|^functions.php$|^header.php$">
Order allow,deny
Deny from All
Satisfy All
</Files>

<Limit GET POST>
Order allow,deny
Allow from all
</Limit>

DirectoryIndex index.php index.htm index.wml index.xhtml index.html index.phtml

# PHP
#AddHandler application/x-httpd-php .php .phtml

AddType text/plain .txt
AddType text/xml .xml
AddType text/css .css
AddType text/javascript .js

AddType application/java-archive .jar
AddType text/vnd.sun.j2me.app-descriptor .jad

AddType image/vnd.wap.wbmp .wbmp
AddType image/bmp .bmx
AddType image/png .png
AddType image/jpeg .jpg
AddType image/jpeg .jpe
AddType image/jpeg .jpeg
AddType image/gif .gif
AddType image/bmp .bmp

# MIME тип по умолчанию
php_value default_mimetype text/html

php_flag magic_quotes_gpc Off
php_flag mаgiс_quоtes_runtime Off
php_flag mаgiс_quоtes_sybаse Off

# Не создаются переменные argc и argv
php_flag register_argc_argv Off

# Глобальные переменные
php_flag register_globals Off

#Отладка
#php_flag display_errors On
#php_flag error_reporting 7
#php_flag log_error Off

Options -Indexes
AddDefaultCharset UTF-8
php_value default_charset UTF-8
php_value upload_max_filesize 100M
php_value post_max_size 100M


ErrorDocument 304 /?
ErrorDocument 400 /?
ErrorDocument 401 /?
ErrorDocument 403 /?
ErrorDocument 404 /?
ErrorDocument 406 /?
ErrorDocument 500 /?
ErrorDocument 502 /?