Do I need a 301 redirect?

by 4 replies
5
here's the deal:
I've built about 15 pages using Wordpress which have been indexed by Google. I recently added www to my url.

Using Google Webmaster Tools i set the preferred domain to the www version. Do I also need a 301 redirect or will Google eventually re-index the pages with the www in the url?
#programming #301 #redirect
  • Many hosting providers automatically set up the re-direct between the www version and the non www. It would be worth checking with your hosting provider and ask them to set it up if they haven't already done it.

    Cheers,

    Martin.
  • This is acceptable, but not required. Here what Google says:

    See the full answer at: google.com/support/webmasters/bin/answer.py?answer=44231
  • It's a good idea, considering that it's just a couple of lines into your .htaccess file and doesn't take up any time at all.
    • [1] reply
    • RewriteCond %{HTTP_HOST} !^vvv\.yourdomain\.com$
      RewriteRule ^(.*)$ hxxp://vvv.yourdomain.com/$1 [L,R=301]

      (The forum thinks I'm trying to post links, so you'll have to change 'hxxp' to 'http' and 'vvv' to 'www'.)

Next Topics on Trending Feed