Monday, February 18, 2019

Web concepts

www sub domain


Ever wondered about the "www" in urls ? usually, we can give it a miss. so whats its use ? Lets say our site is milunsagle.in
1. if we have subdomains like ftp.milunsagle.in, music.milunsagle.in ,etc, and wish to keep cookies betwen the main domain and the subdomains separate, the www acts like a subdomain placeholder for the main domain. Else cookies for all will be mixed.
2. In DNS entries, which link the domain name to the server, if we have a www, we can point to a host-name rather than a static i.p, and the host name can then further point to multiple ips for redundancy.
thanks to https://www.sitepoint.com/domain-www-or-no-www/

No comments:

Post a Comment