We have a web server with many virtual hosts following this scheme:
www.example.com
sub1.example.com
sub2.example.com
sub3.example.com
sub?.example.com
Now some of our more naive customers often try www.sub3.example.com resulting in a redirect to www.example.com.
Is there a configuration setting to automatically redirect all requests targeted at www.sub?.example.com to sub?.example.com?
Thanks in advance!