.htaccess, permanent redirect 301 by dominio.com to www.dominio.com
It's easy to add the redirect 301 sul tuo sito usando l’.htaccess di Apache. Un redirect di questo tipo è molto search engine friendly, and it takes very few minutes to setup.
So what does this redirects 301? All addresses such dominio.com/blah.php will be converted to addresses such www.dominio.com/blah.php. This will avoid duplication of url, and you can only please the search engines, because it will have a list of links more uniform.
Instructions:
1. Open a text editor
2. Change (yourdomain) by writing the name of your domain.
3. Save the file as .htaccess.
4. Upload the files in your root.
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourdomain.com$ [NC]
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L]
Done, Works? 🙂