hello, i have hundreds of pages indexed on google with "www" before the link but thousands of pages without "www" .. and this thing has broken my PR .. i am going to remove those pages from google with "www." .. so will google again reindex those pages without "www. ??
Use rel=canonical to tell Google that your www pages are the same as non-www. You won't lose any PR then.
Yeah, 301 redirect also helps. Actually, I would start from the redirect, then go for the canonical tag.
Put this code in your .htaccess which can be found in the rrot directory: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^www.yourdomain.com [NC] RewriteRule ^(.*)$ http://yourdomain.com/$1 [L,R=301] </IfModule> Code (markup): Also, use Google webmaster tools to choose the preferred domain as non-www version of your site. http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=44231 And the use of Canonical link element will also help; http://www.mattcutts.com/blog/canonical-link-tag/