mod_rewrite help please
I've been playing around with this for an hour and couldn't make it works. I am trying to redirect all request for subdomains to a script (all subdomains are already pointed to the same IP as the main domain), and also pass the subdomain for that script as a parameterFor example
http://subdomain.mydomain.com/script.php?p=params
should be redirected to
http://www.mydomain.com/script.php?p...&sub=subdomain
I came up with some rewrite rules but none of them work, I got the error 500 all the time.
Can anyone please help me with this?

