Search engines think of http://yourweb.com and http://www.yourweb.com as completely different domains, meaning that you are potentially splitting the value of your website content by keeping them separate. Fortunately there’s an easy fix by using a 301 redirect.
What is a 301 redirect?
Put simply, a 301 redirect tells a search engine that one page has been permanently moved to another location. A 301 can be used in a variety of cases but this example will point all non-www traffic to www.
Creating the 301 redirect
1. Ensure that your server has the Apache Rewrite Module activated (If you’re unsure, contact your web hosting provider).
2. FTP into your site, download the .htaccess file from the root folder of your site, and make a backup (just in case things go wrong!)
3. Add the code below to the .htaccess file, save it, and upload to your site (remember to change yourweb.com to whatever your site is):
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^yourweb.com [nc]
rewriterule ^(.*)$ http://www.yourweb.com/$1 [r=301,nc]
4. Lauch your web browser and go to http://yourweb.com. If you’re redirected to http://www.yourweb.com/ everything’s fine. Check your site over to make sure that no pages are broken and that’s it – done.
If there’s anything broken or your site won’t load, restore the .htaccess file that you backed up earlier and upload it to your site. There’s plenty that could go wrong so if you’re unsure I’d definitely advise getting in touch with your hosting provider to see if they’ll help.


A powerful share, I just given this onto a colleague who was doing a bit of evaluation on this. And he in fact purchased me breakfast as a result of I discovered it for him.. smile. So let me reword that: Thnx for the treat! But yeah Thnkx for spending the time to discuss this, I feel strongly about it and love studying extra on this topic. If attainable, as you turn into expertise, would you mind updating your weblog with extra particulars? It is extremely helpful for me. Massive thumb up for this blog put up!
Good engage in to you personally excellent friend…