Avoiding the use of .htaccess for performance

.htaccess files are often used because they allow quick changes to the apache web server configuration and don't require apache to be restarted. However with this flexibility comes a number of performance implications and as a result they should be avoided unless you have absolutely no other way to put…

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…