Размер файла: 4.38Kb
DirectoryIndex index.wml index.php
ErrorDocument 404 /index.php?not_found
ErrorDocument 403 /index.php?access_denided
<Files ~ "\.dat$|\.usr$|\.msg$|\.cus$">
Order allow,deny
Deny from all
</Files>
order allow,deny
allow from all
deny from 217.16.16.208 217.106.232.59
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 application/java-archive .jar
AddType text/vnd.sun.j2me.app-descriptor;charset=UTF-8 .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/mp4 .mp4
Addtype video/3gpp .3gp
RewriteEngine on
#Домены пользователей
RewriteCond %{HTTP_HOST} ^(wap\.)?freewap\.ru:81$
RewriteRule ^(.+) http://veter.kmx.ru:81/$1 [P]
RewriteCond %{HTTP_HOST} ^(wap\.)?ebuchka\.com:81$
RewriteRule ^(.+) http://ebuchka.kmx.ru:81/$1 [P]
RewriteCond %{HTTP_HOST} ^(wap\.)?rostovdon\.net\.ru:81$
RewriteRule ^(.+) http://rostovdon.kmx.ru:81/$1 [P]
RewriteCond %{HTTP_HOST} ^(wap\.)?aggi\.ru:81$
RewriteRule ^(.+) http://aggi.kmx.ru:81/$1 [P]
RewriteCond %{HTTP_HOST} ^(wap\.)?wapnebo\.com\.ru:81$
RewriteRule ^(.+) http://blago.kmx.ru:81/$1 [P]
RewriteCond %{HTTP_HOST} ^(wap\.)?flagman\.pp\.ru:81$
RewriteRule ^(.+) http://flagman.kmx.ru:81/$1 [P]
RewriteCond %{HTTP_HOST} ^(wap\.)?nefteka\.msk\.ru:81$
RewriteRule ^(.+) http://net.kmx.ru:81/$1 [P]
RewriteCond %{HTTP_HOST} ^(wap\.)?dzhipik\.ru:81$
RewriteRule ^(.+) http://dzhipik.kmx.ru:81/$1 [P]
RewriteCond %{HTTP_HOST} ^(wap\.)?obox\.ru:81$
RewriteRule ^(.+) http://israel.kmx.ru:81/$1 [P]
#Услуги
RewriteCond %{REQUEST_FILENAME} /gbfree\.wml$
RewriteRule (.*) /gb.php?fr&%{QUERY_STRING} [P,L]
RewriteCond %{REQUEST_FILENAME} /newsfree\.wml$
RewriteRule (.*) /news.php?fr&%{QUERY_STRING} [P,L]
RewriteCond %{REQUEST_FILENAME} /chat10\.srv$
RewriteRule (.*) /chat.php?10&%{QUERY_STRING} [P,L]
RewriteCond %{REQUEST_FILENAME} /forum10\.srv$
RewriteRule (.*) /forum.php?10&%{QUERY_STRING} [P,L]
RewriteCond %{REQUEST_FILENAME} /sendmail\.wml$
RewriteRule (.*) /mailtoadminsite.php?%{QUERY_STRING} [P,L]
#Разделы
RewriteCond %{HTTP_HOST} ^top\.(kmx|hih|lya)+\.ru:81$
RewriteCond %{REQUEST_FILENAME} /(.+)$
RewriteRule (.+) /rating.php?$1 [P,L]
RewriteCond %{HTTP_HOST} ^cnt\.(kmx|hih|lya)+\.ru:81$
RewriteCond %{REQUEST_FILENAME} /(.+)$
RewriteRule (.+) /counter.php?$1/%{REMOTE_ADDR} [P,L]
RewriteCond %{HTTP_HOST} ^fwd\.(kmx|hih|lya)+\.ru:81$
RewriteCond %{REQUEST_FILENAME} /(.+)$
RewriteRule (.+) /forward.php?$1 [P,L]
RewriteCond %{HTTP_HOST} ^forum\.(kmx|hih|lya)+\.ru:81$
RewriteRule (.+) http://wap.kmx.ru/?anonimous/forum [R,L]
RewriteCond %{HTTP_HOST} ^catalog\.(kmx|hih|lya)+\.ru:81$
RewriteCond %{REQUEST_FILENAME} /(.+)$
RewriteRule (.+) /catalog.php?%{QUERY_STRING} [P,L]
#Сайты пользователей
RewriteCond %{HTTP_HOST} !^(kmx|hih|lya)+\.ru:81$
RewriteCond %{HTTP_HOST} !^(www|wap)\.(kmx|hih|lya)+\.ru:81$
RewriteCond %{REQUEST_FILENAME} .index\.php$
RewriteCond %{HTTP_HOST} ^([^.]+)\.([^.]+)\.ru:81$
RewriteRule ^(.+)\.php$ /sites/%2/%1/$1.wml [P,L]
RewriteCond %{HTTP_HOST} !^(kmx|hih|lya)+\.ru:81$
RewriteCond %{HTTP_HOST} !^(www|wap)\.(kmx|hih|lya)+\.ru:81$
RewriteCond %{HTTP_HOST} ^([^.]+)\.([^.]+)\.ru:81$
RewriteRule ^(.+) /sites/%2/%1/$1 [P,L]