Hi all, I have a question around how to get co domains to work so that *codomain.com and, *www.codomain.com show the default web site. I have tried adding both codomain.com and www.codomain.com as entries for co domains. For the first option I just leave the host part blank. The problem is that one of the entries ends up not using the the DirectoryIndex directive so for example http://codomain.com will show index.php but http://www.codoamin.com would just show the shared ip page, until I type in http://www.codomain.com/index.php. Also, in some cases the DNS server is not running on the same machine as the web site. In these cases I cannot get domain.com to redirect to www.domain.com. It seems domain.com is hard coded to the ip of the machine running the DNS server. Is there some information on how the "redirect" from domain.com to www.domain.com works? I can't see any DNS entries for this? Does domain.com - just use the IP of the authoritative DSN server? thanks
No redirect needed as the co-domain always points to the sme directory then the main domain, so they show the same content.
The problem is I am getting the shared ip page for some subdmains. For example greencomputing.co.za - works www.greencomputing.co.za - does not work but www.greencomputing.co.za/index.php -- does work www.userful.com is the primary domain for the above. userful.co.za does not work. on the other hand triffid.co.za - does not work triffid.co.za/index.php - does work www.triffid.co.za -- does not work www.triffid.co.za/index.php - does work www.onsitetechsupport.co.za - is the primary domain, it works with or without the www. I have checked * Codomain tab has www.domain.co.za and domin.co.za * DNS records exist for each domain and have a www A record with the correct IP address. Whats going one? thanks
Please make sure that the co-domains point to the exact same IP address in dns then the main domain of the website.
ok found the problem. Although Linux does not cache DNS entries apparently Firefox does! So I had to put firefox in offline mode then back into online mode to get it to clear its DNS cache. go figure.