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 this:
# stop rewriting for the host names example.com and www.example.com RewriteCond %{HTTP_HOST} ^(www\.)?example\.com$ RewriteRule ^ - [L] RewriteRule ^error/(.*) index.php?error=$1 [L] RewriteRule ^file/(.*) index.php?file=$1 [L]