I am currently interpreting sub-domain wild-cards with php and i would like to handle them with .htaccess, user profiles will be accessed at http://username.mysite.com/ (or for
Try:
RewriteRule ^error/(.*) index.php?error=$1 [L] RewriteRule ^file/(.*) index.php?file=$1 [L]
... for the last two.