Duplicate Content - Mysite.com/ vs. Mysite.com/index.html

Saturday, September 20th, 2008

As I wrote in a prvious post, duplicate content on your own can come in the form of “www.mysite.com/” vs. “www.mysite.com/index..” The engines see this same page as two different ones, but with identical content. As I also mentioned, most engines are smart enough to figure out that these two pages are the same one, but still, they do share .

What to do? That’s easy too. Just open up your .htaccess again and type in the following code:

RewriteEngine On
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.\ /
RewriteRule ^index\.$ ://www.mysite.com/ [R=301,L]

You can do this with other pages that have the same problem as well.

Related posts

Tags: , , , , , , , , , , , , , , ,

How To Check Your Web Page HTTP Headers & Response Codes

Tuesday, September 16th, 2008

There may be cases when you would like to see what your webpage HTTP headers look like. Why? Well, because they are kind of important. As Wikipedia states, the define what the returned looks like.

Still you ask, “Why in the world do I care about that?” Ok, I’ll keep going. The main reason I look at the is to find out what the HTTP status code is. The reason the is important to me is because this is the the search engines use for a multitude of things.

Let me give you a little example, and this related to my previous post regarding the sudden drop in Google rankings. As I was doing research into what the problem may be for this particular , I came across an issue where someone had recently put custom “404 Not Found” error pages up on some of their . Everyone knows that custom “404 Not Found” error pages are cool, but what some people don’t know is that if those pages show a “200 OK” (successful requests) , the site may be in big trouble, SEO-wise. The reason for this is because there are going to be many “404 Not Found” error pages on a . If you have your custom “404 Not Found” error page showing a “200 OK” , the search engines will think that all the instances of this page are . You know as well as I do, that spells trouble.

What’s worse is if you set your as your “404 Not Found” page. Your is going to return a of “200 OK.” That’s not good, because now you have multiple instances of your …all .

It’s my opinion that the search engines are smart enough to figure this out. The page (such as your ) with the highest will prevail. Still, I have some that I am working on that have multiple instances of the and they all have , which isn’t good, because the duplicates are taking the from the real page. Now, again, that’s my opinion.

Here are two tips:

- How to check your - visit this website or just header check”

- How to set a particular page as your “404 Not Found” error page in your .htaccess file - Just place this in the file: “ 404 /404.php” without the quotes. The 404.php file is the actual error page in this case.

Related posts

Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , ,