Просмотр файла 2/3020.ru/.htaccess

Размер файла: 2.59Kb
<IfModule mod_rewrite.c>
RewriteEngine On

##Аккаунт
RewriteRule ^id([0-9]*) /users/profile/?path=account&id=$1 [L,QSA]

##Скачивание файлов
RewriteRule ^photo/([-a-zA-Z0-9_]*)/([0-9]*)/([0-9]*)/? /files/download/photo.php?size=$1&dir=$2&id=$3
RewriteRule ^video/([0-9]*)/([0-9]*)/([-a-zA-Z0-9_]*)/? /files/download/video.php?dir=$1&id=$2&type=$3
RewriteRule ^files/([0-9]*)/([0-9]*)/([-a-zA-Z0-9_]*)/? /files/download/file.php?dir=$1&id=$2&type=$3
RewriteRule ^music/([0-9]*)/? /files/download/music.php?id=$1

</IfModule>

<IfModule php_value>

php_value register_globals 0 
php_value magic_quotes_gpc 0 
php_value session.use_trans_sid 1 
php_value session.cookie_lifetime 0

</IfModule>

AddDefaultCharset UTF-8
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
DirectoryIndex index.php
Options -Indexes
AddType text/vnd.wap.wml;charset=utf-8 .wml
AddType application/vnd.sonyericsson.mms-template tpl
AddType application/vnd.wap.wmlc .wmlc
AddType text/vnd.wap.wmlscript .wmls
AddType application/vnd.wap.wmlscriptc .wmlsc
AddType image/vnd.wap.wbmp .wbmp
AddType application/vnd.eri.thm .thm 
AddType application/vnd.mophun.application .mpn  
AddType application/vnd.mophun.certificate .mpc
AddType text/vnd.sun.j2me.app-descriptor .jad
Addtype text/x-vmel .mel
Addtype audio/imelody .imy
AddType application/vnd.smaf .mmf
Addtype text/x-vmel .emy
AddType audio/amr .amr
AddType audio/x-wav .wav
AddType application/x-tar .hid
Addtype image/jpeg .jpg 
Addtype image/jpeg .jpeg 
Addtype image/gif .gif 
Addtype image/png .png 
Addtype image/bmp .bmp 
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 application/smil .smil 
Addtype application/smil .smi 
Addtype application/java-archive .jar 
Addtype application/vnd.symbian.install .sis 
Addtype audio/wav .wav 
Addtype audio/midi .midi 
Addtype audio/midi .mid 
Addtype audio/rmf .rmf 
Addtype application/vnd.wap.mms-message .mms 
AddType video/flv .flv
AddType video/mp4 .mp4
Addtype video/3gpp .3gp
Addtype application/zip .zip
Addtype audio/mpeg .mp3
AddHandler application/x-httpd-php .html
AddHandler cgi-script .pl .py .jsp .asp .htm .shtml .sh .cgi
AddType application/x-javascript .js
AddType text/css .css
AddType text/xml .xml
AddType application/octet-stream .doc .mov .avi .pdf .xls 
<ifModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/css text/javascript application/javascript application/x-javascript
</ifModule>