• I’m trying to use EzPHP to insert code that redirects visitors to another page.

    I’m writing this for a Clickbank vendor and affiliate. The code evaluates the affiliates Hop ID and if found, redirects the visitor to another page. If it isn’t that affiliate, then it displays the page the php code is written on.

    Here’s the snippet:
    —————————
    [php]
    $hop = $_GET[“hop”];
    if ($hop === “glutenfree”) {
    header(‘Location: http://www.glutenfree-lowglycemic-diet.com/’);
    }
    [/php]
    ————————————-

    I used echo “Hello World” to test the $_GET[“hop”] function
    and the If statement. They work. However the header function does not execute. How can I get my re-direct or is this PHP plugin only for displaying content on the page?

    Thanks,

    BL

    https://wordpress.org/plugins/ezphp/

  • The topic ‘header function not executing’ is closed to new replies.