标头未正确获取地址

I am giving header('location: forget.php') in confirm.php file but its url goes like confirm.php/forget.php.

 <?php

include('config.php');
 session_start();
        $varGetId = $_GET['id_reset'];
     $sqlQry = "select * from tbl_user where link='".$varGetId."'";
    $ResultSet  = mysqli_query($conn,$sqlQry);
    $countRows = mysqli_num_rows($ResultSet);
    if($countRows == 1)
    {
        $sqlUpdate = "UPDATE tbl_user SET link='' WHERE 
         link='".$varGetId."'";
        mysqli_query($conn,$sqlUpdate);     

    }
    else
        {
            header('location: forget.php');
        }

       ?>

Please use absolute URLs in header location. PHP documentation says:

HTTP/1.1 requires an absolute URI as argument to » Location: including the scheme, hostname and absolute path, but some clients accept relative URIs.

header('location: http://yoursite.com/forget.php');