Here is Code I used to Redirect
<?php
// 301 Moved Permanently
$id1 = $_SERVER['QUERY_STRING'];
$id2 = $_SERVER['QUERY_STRING'];
header("Location: https://example1.com/away.php?to=https://example2.com/sample-page/?$id1", true, 301);
exit();
?>
When I Pressing The URL
https://example2.com/sample-page/?id1=4567&id2=name
Get The Result
https://example2.com/sample-page/?id1=4567
Not Pressing the URL With Id2=name
Can any one help me to fix this Problem
Want a Result this