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
It simple you didn't use both id to your URL just edit it like this:
header("Location: https://example1.com/away.php?to=https://example2.com/sample-page/?id1={$id1}&id2={$id2}", true, 301);
1.4m articles
1.4m replys
5 comments
57.0k users