Redirected and Gone pages still indexed

Discussion in 'PHP' started by lonewolfonline, Feb 5, 2008.

  1. #1
    Hi,

    I have just been going through G's index of my site and found something strange - pages that have gone away (and are being served with a 410: Gone Away header) as well as those with permanent redirect are still being indexed. I have also looked through the logs and found that googlebot is still making direct accesses to these urls?

    I send a redirect or gone via php like this:

    header( "HTTP/1.1 410 Gone" );

    or

    header("HTTP/1.1 301 Moved Permanently");
    header("Location: http://domain/newlocation");

    I can view the header information in Firefox which confirms the correct status code is being sent, so what is wrong? should this all be done in .htaccess instead?

    How do I tell G that the page has gone completely and will never return and stop trying to find it (i.e. GONE!)

    Thanks
     
    lonewolfonline, Feb 5, 2008 IP
  2. powerspike

    powerspike Peon

    Messages:
    312
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #2
    if you get the firebug addin for firefox, you can see headers are been sent, along with alot of ther information.
     
    powerspike, Feb 5, 2008 IP