Subdoman error/redirect ?

Well, I want to add a domain to my server which is using alot of subdomains, I was wondering how exactly I could get it, if somone typed in

http://randomxxx.mydomain.com/

It would forward to

http://mydomain2.com/

There is around 600 subdomains, so it would be too hard going through each one. But anyways, what I want is so that when someone types in blahblah.mydomain.com it's the same as mydomain.com/blahblah and redirects to 404 or somthing.

Is this possible? (Using cPanel)

So to get this clear - I want users to be forwarded when they type in a domain, not matter what it is "http://jsal;f.mydomain.com/asdfasf/asfdasf.djd"

At the moment I have error pages set, but when you enter an invalid subdomain it still gives you page cannot be found.

 

 

 

 

Top