mod_rewrite and subdomain redirection...

Alright ive been fooling around with mod_rewrite for a few days and have failed to figure out what is probably so obvious i should be beaten, but what i need to do is for example i have /somedir/domain.com/ which can be accessed from http://www.domain.com and http://domain.com by default, also i want http://subdomain.domain.com to point to /somedir/domain.com/subdomain/ if it exists otherwise just go to the default /somedir/domain.com

hopefully i have explained it well enough and maybe this can be quickly resolved any ideas?

 

 

 

 

Top