Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter engasm89

    (@engasm89)

    Thanks for your help
    the problem is that I don’t have much experience in PHP
    so here is the code that I use to get the external link from the webpage link and redirect it.

    $url1=$_GET[‘url’];
    $url2=str_replace(” “,””,$url1);

    if(preg_match(‘~https://~’,$url2)) {
    $url3=str_replace(“https://”,””,$url2);
    }
    elseif(preg_match(‘~https://~’,$url2)){
    $url3=str_replace(“https://”,””,$url2);
    }

    header(‘Refresh: 3; URL=https://malksh7ega.newtechgeeks.com/page2-2/?url=https://’.$url3);
    ?>

    I don’t know where the problem is !!
    if anyone can help me I would appreciate that.

    Thread Starter engasm89

    (@engasm89)

    The page with a header, footer, and left sidebar but no content.
    it actually has an iframe in which the external link will be opened if it supports iframe, if nothing shows you can click on the link at the top of this page that says click here and you will be redirected to you destination, my problem is that the first link which should behave the same as the second following the same pages sequence doesn’t instead it shows the unacceptable page.

Viewing 2 replies - 1 through 2 (of 2 total)