# Кодировка по умолчанию
AddDefaultCharset UTF-8

# INDEX
DirectoryIndex index.php
Options -Indexes

# Кэширование файлов
FileETag MTime Size 
<ifmodule mod_expires.c> 
	<filesmatch ".(jpg|gif|png|css|js)$"> 
		ExpiresActive on 
		ExpiresDefault "access plus 1 year" 
	</filesmatch> 
</ifmodule>

# Мод Rewrite
RewriteEngine On
RewriteRule ^cat([0-9]*)/$ cat.php?id=$1 [L,QSA]
RewriteRule ^cat([0-9]*)$ cat.php?id=$1 [L,QSA]
RewriteRule ^albom([0-9]*)/$ albom.php?id=$1 [L,QSA]
RewriteRule ^albom([0-9]*)$ albom.php?id=$1 [L,QSA]
RewriteRule ^foto([0-9]*)/$ foto.php?id=$1 [L,QSA]
RewriteRule ^foto([0-9]*)$ foto.php?id=$1 [L,QSA]
RewriteRule ^com([0-9]*)/$ comes.php?id=$1 [L,QSA]
RewriteRule ^com([0-9]*)$ comes.php?id=$1 [L,QSA]
RewriteRule ^reit([0-9]*)/$ reit.php?id=$1 [L,QSA]
RewriteRule ^reit([0-9]*)$ reit.php?id=$1 [L,QSA]


# Компрессия
php_flag zlib.output_compression On
php_value zlib.output_compression_level 6

# Отладка
php_value arg_separator.output "&amp;"
php_flag register_globals Off
php_flag register_long_arrays Off

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

# Задаем соответствие mime типов расширению
Addtype application/zip .zip
Addtype application/x-rar-compressed .rar
AddType application/vnd.sonyericsson.mms-template tpl
AddType application/vnd.eri.thm .thm 
AddType application/vnd.mophun.application .mpn  
AddType application/vnd.mophun.certificate .mpc
AddType application/vnd.smaf .mmf
AddType application/x-tar .hid
Addtype application/smil .smil 
Addtype application/smil .smi 
Addtype application/java-archive .jar 
Addtype application/vnd.symbian.install .sis
Addtype application/vnd.wap.mms-message .mms
Addtype application/octet-stream .exe

Addtype text/x-imelody .imy 
Addtype text/x-emelody .emy 
Addtype text/x-vcard .vcf 
Addtype text/x-vcalendar .vcs 
Addtype text/calendar .ics
AddType text/vnd.sun.j2me.app-descriptor;charset=UTF-8 .jad
addtype text/x-vmel .mel
addtype text/x-vmel .emy

addtype audio/imelody .imy
AddType audio/amr .amr
AddType audio/x-wav .wav
Addtype audio/wav .wav 
Addtype audio/midi .midi 
Addtype audio/midi .mid 
Addtype audio/rmf .rmf

Addtype image/jpeg .jpg 
Addtype image/jpeg .jpeg 
Addtype image/gif .gif 
Addtype image/png .png 
Addtype image/bmp .bmp 

AddType video/mp4 .mp4
Addtype video/3gpp .3gp