301 Redirect Question - Please help

Discussion in 'PHP' started by 3mice, Dec 29, 2008.

  1. #1
    I have a site that has been redesigned and the new website will be launched soon. Now, the old site has hundreds of links that have been indexed that send traffic that converts quite well. Each of these links has an equivalent page on the new site with a new link structure.

    I read that implementing a 301 redirect is the safest way to let the search engine know about the new link to redirect the surfer to.

    Now the problem is that i have over 500 links i would redirect to new links on the new site but was told that adding lots of links on the .htaccess file would slow down the server. Is there a way of doing this using a mysql table and a script that would find the old link and redirect to the new link on the server?
    Thanks
     
    3mice, Dec 29, 2008 IP
  2. crivion

    crivion Notable Member

    Messages:
    1,669
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    210
    Digital Goods:
    3
    #2
    yes you can do it by a mysql table
    make 3 fields such as ID, old, new
    then detect the page on ariving with $_SERVER['PHP_SELF'] and make a 301 redirect with php itself
    good luck
     
    crivion, Dec 29, 2008 IP