Redirection and subdomains

SkyFire

Claptrap Overlord
Nov 24, 2007
1,745
29
0
I'm trying to build a redirect for apache. What I need to happen is that content available at domain.com/test/ is available at test.domain.com. It should happen for all child sub directories of public_html.

Any help with this?
 


I figured it out about 15 minutes after posting.

I simply used the wildcard subdomain, and then a php script to parse the subdomain being requested, and then load the corresponding directory. Easy pie.