Mistake.. How can I fix.

Discussion in 'SEO' started by ominc, Nov 3, 2006.

  1. #1
    We have a system that gives examples of orders our customers have placed. Each order has it's own page so we can talk about it. We made a mistake in the script we built and it was generating blank pages.

    http://www.versatables.com/dcustomers.php?page_no=995

    I'm not sure how many of these pages were created maybe unlimited who knows.. basically I just don't know. I do know that Google was giving them a page rank... so google did spider them. I've fixed the script and I wanted to do something to fix this in my .htaccess so what is the best way to fix this, so that google knows these pages should not exist.. should i just block off access in to that directory?
     
    ominc, Nov 3, 2006 IP
  2. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Put something in the page so if its blank it 301 redirects to the homepage.
     
    mad4, Nov 3, 2006 IP
  3. nks

    nks Well-Known Member

    Messages:
    1,602
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    160
    #3
    Oh, that looks kind of bad....

    the best way to fix it is probably first, fix the bug in your code. then, go to the database (MySQL or whatever, and alter the entries). hmm.. that might not help, but see how it works.

    Make sure you back up first!
     
    nks, Nov 3, 2006 IP
  4. ominc

    ominc Peon

    Messages:
    144
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    would just making them be 404's be really bad?
     
    ominc, Nov 3, 2006 IP
  5. nks

    nks Well-Known Member

    Messages:
    1,602
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    160
    #5
    404 does not make the site look professional. A 301 redirect would be more preferred for a professional site.
     
    nks, Nov 3, 2006 IP
  6. ominc

    ominc Peon

    Messages:
    144
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    <?
    Header( "HTTP/1.1 301 Moved Permanently" );
    Header( "Location: http://www.new-url.com" );
    ?>
     
    ominc, Nov 3, 2006 IP
  7. ominc

    ominc Peon

    Messages:
    144
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    If the page is blank..
     
    ominc, Nov 3, 2006 IP
  8. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Yes. Thats fine.

    A 404 will take longer to be removed from Google than a 301.
     
    mad4, Nov 3, 2006 IP
  9. ominc

    ominc Peon

    Messages:
    144
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Thanks for your help guys.
     
    ominc, Nov 3, 2006 IP