<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule
^screen/([0-9]+)\.([0-9]+)\.(GIF|JPG|PNG)$
scr_file.php?w=$1&id=$2&ras=$3 [L,QSA]
RewriteRule ^(.*)/([^/]*)$
index.php?d=$1&f=$2 [L,QSA]
RewriteRule ^(.*)/$ index.php?d=$1
[L,QSA]
</IfModule>
<Files "count.php">
order
allow,deny
deny from all
</Files>