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
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.
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.