The Internal Duplicate Content Solution
Pretty cool stuff, isn't it? Does it work? It does. Okay, let me give you the code you are going to need for your site that I discussed in the video:
# Begin non-www page protection #
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.webmarketingnow\.com [NC]
RewriteRule ^(.*)$ http://www.webmarketingnow.com/$1 [L,R=301]
</IfModule>
# End non-www page protection #
Here are the steps you will need to take to edit your .htaccess file on your server. Of course, I am assuming you have an Apache server, if you are on a Windows server, scroll to the bottom of this page for the details you will need.
1) Find the .htaccess file on your server. It is on the root of your domain, which is the same folder as your home page. Normally this would be in the "public_html" folder on most servers.
2) Save a copy of the file to your local machine.
3) Edit the file. I prefer to edit the .htaccess file right on the server, and if you make a mistake, you have a backup. The reason I prefer this method is using a program such as Notepad often causes corruption in the .htaccess file, or Webmasters doing this the first time save it with a "txt" extension and can't figure out why it doesn't work.
4) Of course, I will assume here that you are smarter than a search engine bot and know to swap out your domain for mine above, or what will happen is you will just redirect all of your visitors to my site ... which, let's be honest, won't benefit them as that's not where they wanted to go.
5) Save the changes and type in "yourdomain.com" without the "www" and it should redirect to www.yourdomain.com.
If you have problems, here is a brief troubleshooting guide:
1) If you can't locate the .htaccess file, try placing a "-a" in the remote filter. To get there, just right-click in the window showing the files on your server and choose "Filter". Find the area designated as "Remote Filter" and add the "-a".
2) Call your web host and make sure the Apache Rewrite Module is turned on. Most web hosts, for whatever reason, have this turned off as a default.
Wait, can't you just skip this and go into your Google Webmaster account and change it there to recognize only the "www" version of your domain?
You mean this screen?

This screen is found under Dashboard > Tools > Set preferred domain
Now, do you see where I underlined in red? Read that out loud. A lot of Webmasters think this fixes the problem, but it only applies to how the domain shows up in the SERPS visually on the screen. It has nothing to do with how your server serves your domain to a browser.
Sadly, a presenter at the recent Webmaster World gave this as a tip on how to easily fix the non-www problem on a Webmaster's site. That's just bad advice.
Now you know how to fix it, and if you have just average experience as a webmaster, you should have this fixed in about 8 minutes.
Solution for Windows Servers
Windows servers don't have an .htaccess file the steps aren't too bad. Since I booted my Windows servers a few years ago due to constant hack attempts, I'll refer you elsewhere for the info. It is better to get the information right, and I don't like to give out information, which I haven't tested.
Installing non-www Domain Redirect on a Microsoft IIS Server.
If you want the best in tested search engine strategies and marketing advice when it matters most-
Join the SEO Revolution.
The edge for your business, right here, right now.
© 2007-2008 Web Marketing Now. Get the tips and research you need to take your business to the next level at www.webmarketingnow.com.
|