Forum Moderators: Robert Charlton & goodroi
I have a website that shows one page in the Google index when we run a site:URL command and that too an internal page while when we run the command without www, it shows 27 pages.
eg:
site:www.example.com gives 1 page
site:example.com gives 27 pages
When we check the cache date for the home page it shows the same whether with or without www.
Let me know if this is some kind of penality by Google?
Thanks in advance.
-Ankit
Why Does Google Treat "www" & "no-www" As Different? [webmasterworld.com]
The fix is to use a 301 redirect that sends requests to your preferred form of the url, rather than letting both forms resolve. And while you're working on fixing this kind of canonical url problem, you may want to check for and fix as many others as you can, to prevent future troubles. Here's a summary reference you can use:
Canonical URL Issues - including some new ones [webmasterworld.com]