Category Apache

One day I was working on a new Drupal site for client. This was on a new server and I had no clue where anything was. I needed to find out what PHP version was running. I could not find this in Plesk for some reason. On Geeklog they had an article with a cool way to track down your PHP version and other information about PHP on a server.

I needed to setup a catch all for one of my clients domains. This is what I needed to happen:
If user typed in an incorrect sub domain for mydomain.com that did not exist I needed it
to redirect them to www.mydomain.com.
For example: if they type in notreal.mydomain.com it will send the user
to www.mydomain.com.
Here is what I did to accomplish this: