Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

Assume there is a website with the domain name baz.tld. It has content. There is also content on subdomains foo.baz.tld and bar.baz.tld, but there is no www.baz.tld subdomain.

The most frequent search operator I use on Google is site: to limit the scope to a particular domain. This works fine when specifying a particular subdomain such as site:foo.baz.tld (which limits search result to that subdomain). But when I give site:baz.tld I end up getting results for foo.baz.tld and bar.baz.tld but the ones for baz.tld end up somewhere towards the end (several pages forward) of the search results.

How can I achieve something like site:foo.baz.tld but limit it to only baz.tld?

share|improve this question
add comment

migrated from superuser.com Mar 11 '13 at 14:34

This question came from our site for computer enthusiasts and power users.

1 Answer

up vote 3 down vote accepted

I think the closest you can come is to restrict your search to the domain you want, then subtract out the subdomains you don't. For example, compare the results of these two queries:

visual studio site:microsoft.com

visual studio site:microsoft.com -site:msdn.microsoft.com

Google doesn't support wildcarding in site: keyword as in -site:*.microsoft.com, so you'll have to subtract each subdomain you'd like excluded one-at-a-time.

share|improve this answer
    
Thanks @NicoleHamilton. This is of course not practical, but it just means this is a limitation of the service. Hoping for other answers in the future, for now I'll accept. +1 as well. –  0xC0000022L Mar 15 '13 at 0:05
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.