What is the .htaccess Redirect Generator tool?
This is a simle tool that automatically creates the code to plug into your .htaccess file to quickly and easily redirect all traffic to the non-www version of your site to the www version or vice versa if your preferred version is without the www. Copy the generated text from the box and paste it into your .htaccess file on your web server. Using this type of 301 automatic permanent redirect will help Google and other search engines to index the correct version of your site URLs. It also helps pass any link equity that is pointing to the wrong version of your URLs so the correct URLs get all the link juice they deserve.