Check subdomain also when grouping tree by URL.

Now "cse.tamu.edu/" and "engineering.tamu.edu/" will be children of
"tamu.edu/", which was not the case earlier because they all have the
same domain "tamu.edu" and path "/".