This is a continuation of: http://stackoverflow.com/questions/623161/help-with-basic-htaccess-modrewrite
I was told to use
RewriteRule ^error/(.*) index.php?error=$1 [L]
RewriteRule ^file/(.*) index.php?file=$1 [L]
and
RewriteCond %{HTTP_HOST} !^www\.mysite\.com$ [NC]
before each, but it dosn't really help me specifically.
I am using a wildcard sub-domain how can I make this condition:
RewriteCond %{HTTP_HOST} !^www\.mysite\.com$ [NC]
dynamic, like if it is any subdomain (except www.) so what do I need to change.