Redirecting subdomains to directories in apache.
Note: It is likely you will need root access to carry out apache config alterations 12-02-07: Fixed mistake in the directory comparison line. If you want to be able to redirect blah.domain.com to domain.com/blah/ so that blah.domain.com is shown in the address bar here's…