Need Help of 200 status

Posted By: cajuns ()
Posted On: 2007-Jan-02 17:05

Hi

I'm not sure if this is the right forum to place this topic, but it's as close as I could find.

Someone told me that my website is returning a 200 status for www. and non www. pages.

Does anyone know what that means, and how to fix it?

Thanks in advance.


Posted By: Hampstead ()
Posted On: 2007-Jan-02 19:02

You only want to get one version of the site indexed. The www and the non www version are seen as 2 sites with the same content.

The 200 status shows the search engines that the site is being correctly served. What you need tough is a 200 on only one version and a 301 on the other. Typically the non www version is redirected by way of a 301 redirect to the www version.

There are different ways of doing this depending on what platform you are hosted. What hosting platform are you on?


Posted By: cajuns ()
Posted On: 2007-Jan-02 19:10

Hi

Thanks for a quick reply, and for helping me to understand! They told me what it was doing, but not what it meant!

What do you mean exactly by hosting platform?

Thanks, I appreciate it!

[ Message was edited by: cajuns 01/02/2007 01:35 pm ]




Posted By: Hampstead ()
Posted On: 2007-Jan-02 22:25

I need to know whether you are hosted on a Windows or Unix/Linux server.

IS it the site in your profile?


Posted By: cajuns ()
Posted On: 2007-Jan-03 00:24

Oh, okay, sorry, yes it is the site in my profile.

Thanks




Posted By: Hampstead ()
Posted On: 2007-Jan-03 10:33

In that case you are hosted on Unix/Apache.

You need to locate (or create) on your server a file called .htaccess and add the following code:

Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^cajuncookingrecipes.com [nc]
rewriterule ^(.*)$ http://www.cajuncookingrecipes.com/$1 [r=301,nc]


Posted By: cajuns ()
Posted On: 2007-Jan-03 16:02

Thanks so much. I wasn't quite sure on the code to add to that file. You have been a great help!

Thanks again
Cajuns