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.