Forum Moderators: Robert Charlton & goodroi
Can someone please tell me if this is accurate or not? Cause if I run a header status check on any of these urls Google doesn't like, the tool shows that a proper 301 permanent redirect is implemented along with the redirected url.
[edited by: Robert_Charlton at 5:47 pm (utc) on May 5, 2008]
[edit reason] removed specifics [/edit]
I added 301's for all the old pages (there was only about 100) and google is removing them from the webmaster tools 404 listing (Not Found) slowly but surely.
Are yours showing in the "HTTP errors" or "Not found" section?
Reading up on this a little this may help in the solution to the problem.
From some reads the problem is in your .htaccess file I searched and found some discussions on this so you may want to as well but the issue is in the .htaccess file somewere it is wrong and causing the issue.
I am betting Google is right and letting you know to find the issue.
IF !EMPTY(pcnewitemno)
oHeader = CREATE("wwHTTPHeader",Response)
oHeader.setprotocol([HTTP/1.1 301 object permanently moved])
oHeader.CompleteHeader()
Response.WriteLn([<html><meta http-equiv="refresh"content="0;url=http://www.mysite.biz/moreinfo.int?itemno=]+pcnewitemno+[ ></html>])
1. the requested url is returning a 301 redirect status code in the server header
2. the server header does not include a line with the new "Location:" url for the requested content.
Note that the server header is not the same as the <head> section of the page's source code - they are two different critters altogether.
This means that writing a few lines containing a meta refresh into the page's <head> section is not the same as returning the new "Location:" in the server header. Because there's a 301 http status in the server header, your server will never give googlebot the original url's content - and that's where your script is writing the lines that contain the meta refresh.
Since you are using IIS, I would suggest discussing the technical details of a 301 redirect in our IIS forum [webmasterworld.com]. The specifics can vary depending on the version of IIS and whether you have admin level access.