DirectoryIndex index.php

<FilesMatch ".(flv|gif|jpg|jpeg|png|ico|swf|js|css|pdf)$">
 Header set Cache-Control "max-age=2592000"
 </FilesMatch>

php_value display_errors 1
php_value display_startup_errors 1
php_value error_reporting E_ALL
php_flag display_startup_errors on
php_flag display_errors on
php_flag html_errors on

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

# Магические кавычки
php_flag magic_quotes_gpc Off
php_flag magic_quotes_runtime Off
php_flag magic_quotes_sybase Off

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

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

# Сессия
php_value session.auto_start 1

# Автоматическое подставление идентификатора сессии к ссылкам
php_value session.use_trans_sid 1

# Разделитель переменных в URI
php_value arg_separator.output "&amp;"

Options -Indexes
AddDefaultCharset UTF-8
php_value default_charset UTF-8

php_value date.timezone "Europe/Moscow"

# mbstring
# Автозамена на мультибайтную кодировку
php_value mbstring.func_overload 6

php_value mbstring.internal_encoding UTF-8
php_value mbstring.http_output pass
php_value mbstring.http_input pass
php_value mbstring.encoding_translation 0

# Компрессия
php_value zlib.output_compression 4096
php_value zlib.output_compression_level 5


# Файлы
RewriteEngine on
RewriteRule ^foxbill/mails.dll/?$ modules/new_mail.php?id='.$user['id'].' [L,QSA]
RewriteRule ^foxbill/products.dll/?$ products.php [L,QSA]
RewriteRule ^foxbill/out.dll/?$ log_out.php[L,QSA]
RewriteRule ^foxbill/auth.dll/?$ auth.php[L,QSA]

RewriteRule ^foxbill/auth_server.dll/?$ /mgr/auth_server.php [L,QSA]
RewriteRule ^foxbill/creatpanel.dll/?$ /mgr/creatpanel.php [L,QSA]
RewriteRule ^foxbill/sys_mail.dll/?$ modules/sys_mail.php [L,QSA]
RewriteRule ^foxbill/.dll/?$ log_out.php [L,QSA]
RewriteRule ^foxbill/tiket.pvm/?$ tiket [L,QSA]

RewriteEngine on
RewriteRule ^foxbill/billing.dll/?$ modules/billing.php [L,QSA]
RewriteRule ^foxbill/tarifs.dll/?$ tarifs.php [L,QSA]
RewriteRule ^foxbill/all_news.dll/?$ modules/all_news.php [L,QSA]
RewriteRule ^foxbill/forum.pvm/?$ api_forum [L,QSA]
RewriteRule ^foxbill/rules.dll/?$ modules/rules.php [L,QSA]

RewriteEngine on
RewriteRule ^foxbill/set.dll/?$ modules/set.php [L,QSA]
RewriteRule ^foxbill/edit_pass.dll/?$ modules/edit_pass.php [L,QSA]
RewriteRule ^foxbill/edit_ank.dll/?$ modules/edit_ank.php [L,QSA]
RewriteRule ^foxbill/close_profile.dll/?$ modules/close_profile.php [L,QSA]
RewriteRule ^foxbill/myadminwap.pvm/?$ myadminwap [L,QSA]

RewriteEngine on
RewriteRule ^foxbill/static.dll/?$ static.php [L,QSA]
RewriteRule ^foxbill/mini_chat.pvm/?$ mini_chat [L,QSA]
RewriteRule ^foxbill/tiket/adm.dll/?$ tiket/admin.php [L,QSA]

RewriteEngine on
RewriteRule ^foxbill/admin.dll/?$ admin [L,QSA]
RewriteRule ^foxbill/user_mail.dll/?$ modules/user_mail.php [L,QSA]
RewriteRule ^foxbill/my_cont.dll/?$ modules/my_contacts.php [L,QSA]

RewriteEngine on
RewriteRule ^foxbill/.dll/?$ index.php?glavn=eitar [L,QSA]
RewriteRule ^foxbill/online.dll/?$ modules/online.php [L,QSA]
RewriteRule ^foxbill/all_profiles.dll/?$ modules/all_profiles.php [L,QSA]



# Beta ускарение

<FilesMatch "\.js.gz$">
ForceType text/javascript
Header set Content-Encoding: gzip
</FilesMatch>
<FilesMatch "\.css.gz$">
ForceType text/css
Header set Content-Encoding: gzip
</FilesMatch>
<FilesMatch "\.js$">
ForceType text/javascript
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} !".*Safari.*"
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{REQUEST_FILENAME}.gz -f
RewriteRule (.*)\.js$ $1\.js.gz [L]
ForceType text/javascript
</FilesMatch>
<FilesMatch "\.css$">
ForceType text/css
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} !".*Safari.*"
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{REQUEST_FILENAME}.gz -f
RewriteRule (.*)\.css$ $1\.css.gz [L]
ForceType text/css
</FilesMatch>

# 2
<ifmodule mod_deflate.c="">
<filesmatch ".(js|css)$"="">
SetOutputFilter DEFLATE
</filesmatch>
</ifmodule>

# 3
Header append Cache-Control "private"
FileETag MTime Size
ExpiresActive On
ExpiresDefault "access plus 0 minutes"
ExpiresByType image/ico "access plus 1 years"
ExpiresByType text/css "access plus 1 years"
ExpiresByType text/javascript "access plus 1 years"
ExpiresByType image/gif "access plus 1 years"
ExpiresByType image/jpg "access plus 1 years"
ExpiresByType image/jpeg "access plus 1 years"
ExpiresByType image/bmp "access plus 1 years"
ExpiresByType image/png "access plus 1 years"

# 4
AddType application/x-httpd-php .js
AddHandler x-httpd-php5 .js
<filesmatch "\.(js|php)$">
SetHandler application/x-httpd-php
</filesmatch>



# Ошибки
ErrorDocument 304 /err.php
ErrorDocument 400 /err.php
ErrorDocument 401 /err.php
ErrorDocument 403 /err.php
ErrorDocument 404 /err.php
ErrorDocument 406 /err.php
ErrorDocument 500 /err.php
ErrorDocument 502 /err.php
ErrorDocument 508 /err.php