On VPS, it seems I can use <VirtualHost>
to redirect any subdomain to main domain. On shared host, since I cannot edit the apache configuration file, how can I do?
Currently, I create a CNAME record for *.mydmain.com to redirect to mydomain.com. But When I visit nonexist.mydomain.com, it lands on nonexist.mydomain.com/cgi-sys/defaultwebpage.cgi.