WebScHoLaR

Well-Known Member
Dec 14, 2005
510
3
168
Planet Earth
If you want anything.yourdomain.com to go to yourdomain.com then you setup a wildcard entry as *.yourdomain.com. * serves as Wildcard and this entry redirects anything.yourdomain.com to yourdomain.com.

In order to setup this you have to do two things:

1) Add an A record for * pointing to yourdomain.com IP address

2) Add a ServerAlias *.yourdomain.com in the VirtualHost ection of the yourdomain.com in httpd.conf