If you have done research on search engine optimization you have probably found the suggestion to use 301 redirects. A 301 redirect is considered to be a search engine friendly way of redirecting traffic. This is useful if you have to change file names or move pages around. Considered to be the safest method as it should help preserve your search engine rankings. The code “301” is interpreted as “moved permanently”.
Another SEO tip is to set-up a non www to www 301 redirect, which essentially means that any traffic arriving from domain.com will be permanently redirectly to www.domain.com. This is important to implement to avoid duplicate indexing of your site. You don’t want the search engine to view the two as different sites and the non www redirect will ensure that.
So how do you set-up a 301 redirect? Well for the vast majority using an Apache web server it is as simple as modifying your .htaccess file. As for those of us running IIS it isn’t as straight forward, but don’t worry here is a page with detailed instructions. Finally, once you have your redirect in place use this tool to make sure it is redirecting properly.