Printer Friendly Version
Email this thread to a friend
|
Featured Web Site Template |
|
Reflects user activity within the last 5 minutes
|
|
| Member |
Message |
cajuns
Joined: Apr 10, 2006
# Posts: 104
|
Posted: 01/02/2007 09:05 am
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.
|
 |
Hampstead
Joined: Feb 20, 2001
# Posts: 2007
|
Posted: 01/02/2007 11:02 am
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?
|
 |
cajuns
Joined: Apr 10, 2006
# Posts: 104
|
Posted: 01/02/2007 11:10 am
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 ]
|
 |
Hampstead
Joined: Feb 20, 2001
# Posts: 2007
|
Posted: 01/02/2007 02:25 pm
I need to know whether you are hosted on a Windows or Unix/Linux server.
IS it the site in your profile?
|
 |
cajuns
Joined: Apr 10, 2006
# Posts: 104
|
Posted: 01/02/2007 04:24 pm
Oh, okay, sorry, yes it is the site in my profile.
Thanks
|
 |
Hampstead
Joined: Feb 20, 2001
# Posts: 2007
|
Posted: 01/03/2007 02:33 am
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]
|
 |
cajuns
Joined: Apr 10, 2006
# Posts: 104
|
Posted: 01/03/2007 08:02 am
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
|
 |
You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
- You have not yet logged in, or registered properly as a member
- You are a member, but no longer have posting rights.
- This is a private forum, for which you do not have permissions.
If you are a recent member, it's possible that you simply have not yet confirmed your account. Please
check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions
contained within.
If you cannot find this message, click here to Re-Send it.
|
If you are still experiencing problem, please read the
Login Assistance
Article for some advice on what may be causing your login not to work properly.
|
Switch to Advanced Editor and ...
Create a New Topic
or Reply to this Thread
|
|