How can I Decrypt and Redirect to a Different Link?

Discussion in 'Programming' started by MindReality, Dec 19, 2013.

  1. #1
    Hi,

    I would like to do this:

    Redirect http:xxmindreality.com/cb/?a=btXAypit2&p=2

    To: http:xxmindreality.com/ez/go.php?offer=pelmansec&pid=2

    What happens is that "btXAypit2&" is an encrypted ClickBank id, and I know the key code such as "a" = "2", "b" = "s", "1" = "8" etc...

    I would like to be able to do TWO Things.

    1. Decrypt a certain part of a URL

    2. Redirect to another URL with the data

    3. Transform and Pass other parameters as well e.g. "&p=2" becomes "&pid=2"

    What I am really trying to do is to redirect all "ClickBank Hopguard" Affiliate links to "Easy Click Mate" Affiliate links.

    So the above method is a way do it. I just need to know how to implement the exact code/script required. I think it would be uploaded to the folder where my hopguard is installed "http:xxmindreality.com/cb/"

    Any suggestions?
     
    MindReality, Dec 19, 2013 IP