Options -Indexes

<Files conf.php>
  deny from all
</Files>

php_value upload_max_filesize 15M
php_value post_max_size 15M
php_value short_open_tag 1

RewriteEngine On
RewriteBase /share

RewriteCond %{QUERY_STRING} ^d=([a-zA-Z0-9]{8})$
RewriteRule ^$ file.php?id=%1

RewriteRule ^file/([0-9]+)/(.*)$ file.php?id=$1 [L]