Need to figure out massive redirect situation. PLEASE HELP

Discussion in 'Apache' started by cgo85, Dec 8, 2008.

  1. #1
    I am trying to redirect approx 1000 affiliate links to new website. The issue with using a normal PHP 301 is that the original links are screwy. Instead of a aid=abcd&pid=1234, it just changes the 'aid=' variable for each product. So one affiliate might have aid=1234, aid= 4567, aid=9876, etc... Basically just gives out the next available aid number when affiliate creates a link for a new product.

    The new links will be structured: /go/cbpnap/a100/

    cbpnap = the product name
    a100 = affiliate id

    In this structure the product name and affiliate id's will remain constant like most affiliate linking structures.


    So, this is where i'm at... I'm thinking that there is a way to load 2 csv (one for old links, one for new links) to a mysql db and try to work a redirect with PHP that way? Any suggestions or links to some help?

    THANKS
     
    cgo85, Dec 8, 2008 IP