Can i do following 301 redirect from multiple pages to single page? Will google be ..

Discussion in 'Google' started by paidhosting, Jul 30, 2007.

  1. #1
    Hello,
    I am doing a complete url restructuring for my detail pages at www.h-log.com and like for example http://www.h-log.com/detail/link-2842.html to http://www.h-log.com/detail/Online_Slots_2842.html and so on, maybe 2K + such links and pages, few had pr 2, pr3 pr 0 etc.

    Since there is no way to redirect them to new url structure using .htaccess i have used the 301 permanent redirect from all those pages to the main page.

    Would this make google angry and is not preferable, or shall i redirect them all to a error 404 page ? And if so what are the header codes required for that page to produce a status code of 404 ?

    Please advise.

    Thanks
     
    paidhosting, Jul 30, 2007 IP
  2. vishwaa

    vishwaa Well-Known Member

    Messages:
    271
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    138
    #2
    You can still use 301 redirect for all old urls to new urls.

    Add this code to the top of .htaccess.
    In the redirect.php script,

    connect to the database and
    fetch the title text for the corresponding id,
    format it to the new url structure and then
    finally issue a 301 redirect via header function.

    I tried it in my sites and it worked well.

    Hope it helps.
     
    vishwaa, Jul 30, 2007 IP
  3. paidhosting

    paidhosting Peon

    Messages:
    4,822
    Likes Received:
    483
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Oh that all sounds like "star trek" where no one has gone before sort of stuff, aint got the idea nor the brain power to be frank to follow what you exactly said above.
     
    paidhosting, Jul 30, 2007 IP