1. Does it help to redirect all yoursite.com to www.yoursite.com? I notice that webmasterworld does it.
2. What is the appropriate rewrite command in the .htaccess file to do this universally/generally across the site with only a single rewrite rule in .htaccess? I've searched webmasterworld for an answer to this but keep finding more complicated scenarios than I'm dealing with. I don't want to redirect from an old site to a new site. I also don't want to redirect just a particular directory or file. I want to redirect all calls to site.com* to www.site.com*
Does it help to redirect all yoursite.com to www.yoursite.com?
Does it help WHAT? ;)
There is evidence that Google splits the page rank for a site that has incoming links pointing to both www.yoursite.com and yoursite.com which is why I use this type redirect on my sites.
AFAIK, you'll need at least two lines of code to implement this redirect. Also, it would be prudent to become a little familiar with .htaccess and mod_rewrite before trying this, there can be some "gotchas." This post [webmasterworld.com] will introduce you to them. The code you're looking for is already on the board in several places but perhaps someone will post it again for you.
Dave, I've spent a lot of time with .htaccess, so becoming familiar is not an issue. I'm just having the hardest time finding or thinking of a solution to a general redirect. I've searched WebmasterWorld extensively and find much on .htaccess and redirects but none that give specific examples of a universal redirect from site.com* to www.site.com* .
I do the reverse ... I redirect www.mysite.com to mysite.com ... but the same thought processes apply.
If your preferred form is the only URL that ever appears in your address bar, that improves the likelihood that other sites will link to you that way. It is A Good Thing to have your link pop focused on one form or the other, rather than split between the www. and non-www. versions. I don't think it matters which one you use as long your link pop is as consistent as possible.