Forum Discussion

  • Hi,

    like this I think:

    when HTTP_REQUEST {
        if { [HTTP::uri] starts_with "Modules/NewAccount/newAccount.php" }{
        set params [getfield [HTTP::uri] "?" 2]
        set newdestination "https://application.tradeking.com/?ola=tks&$params"
        HTTP::respond 301 Location "$newdestination"
        }
    }

  • more readable...

    when HTTP_REQUEST { 
        if { [HTTP::uri] starts_with "Modules/NewAccount/newAccount.php" }{ 
            set params [getfield [HTTP::uri] "?" 2] 
            set newdestination "https://application.tradeking.com/?ola=tks&$params" 
            HTTP::respond 301 Location "$newdestination" 
        } 
    }