You should not have to do any of this with a WordPress blog.
WordPress automatically does the 301 redirect to standardize the URL as either with or without the www subdomain, depending upon how you establish the standard URL on the Settings > General page. It has been doing that for quite some time. make sure that both the "WordPress address (URL)" and the "Blog address (URL)" are the same and both use the www subdomain.
@Rohitpatel, I just checked your site using site:shaswatpatel.com and all of the pages that I see use the www subdomain.
Make sure that all of the links leading to your site use the www subdomain.

Originally Posted by
Rohitpatel
Like I am getting Cache and Info information with WWW while I didn't getting same without WWW.
You should not be seeing any results without the www subdomain. Your standardized URL uses the www subdomain. URLs without the www subdomain sould not exist in Google's index or cache.

Originally Posted by
menj
In addition, add your site to Google Webmaster Tools for both www. and non-www versions and edit the settings so that Google will recognise only one version.
That sounds like a good was to confuse Google. You should only set the site up once under the standard version of the URL. If you use Google Webmaster Tools, it is a good idea to set the standard URL as menj recommends. That is just added insurance, but should be necessary with the WordPress 301 redirect.
"It's inexcusable for scientists to torture animals; let them make their experiments on journalists and politicians." -Henrik Ibsen
Bookmarks