How to Redirect Non-WWW to WWW

Search engines consider http://joshstauffer.com and http://www.joshstauffer.com to be different websites. Therefore if you have others linking to both versions of your site you are splitting up your link juice. To correct this you can use a simple 301 redirect in your site’s .htaccess file. RewriteEngine on RewriteCond %{HTTP_HOST} ^joshstauffer\.com$ [NC] RewriteRule ^(.*)$ http://www.joshstauffer.com/$1 [R=301,L]