I have a redirect script that looks like this:
if ($m == "link1") {$link = "http://www.example.com";}
if ($m == "") {$link = "http://www.example.com";}
header("Location: $link");
Now, if a redirect link has no value for "m" there's that "empty" entry at the end and that works.
But, if there's a non-existing value, redirect does not work properly, and there's an error like "The page isn’t redirecting properly"
So, what kind of code would make non-existing "m" value to redirect like there's no value?
Thanks