heya guys...
i see there are a few close to wat i wanna achieve but not there yet i think..
i have a scenario here
i wanna have subdomains redirected to a folder including everything within the folder...
means for example
sub.domain.com -> domain.com/sub
sub.domain.com/duh.html -> domain.com/sub/duh.html
etc..
basically a subdomain with all the characteristics of a domain...
if possible ... www.sub.domain.com -> domain.com/sub as well
also the rule should match anything.domain.com ... means *.domain.com/* goes to domain.com/*/* ... cause i see some rules need to add the matching subdomain one by one.. which makes the htaccess file very long if i have like few hundred subdomains... hehe
of coz i need it to be url rewrite... dont wanna show them the real path in the address bar.. hehe...
thanks guys