<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^file/([0-9]*) file.php?id=$1 [L,QSA]
</IfModule>