I have a URL that is passed incorrect values when loaded and since the script has a PHP template backing the link I don’t get a 404 error. Here is my example:
http://www.examplesite.com/template.php?value=incorrect
As you can see, the “template.php” page will load, but all of the info that is linked to this page via a database table is empty due to the “incorrect” value that are being passed. Now for my question.
I would like this to be redirected to a unique landing page when an incorrect value is passed in this manner rather than having the page load with empty values. Is this possible? If so, how?
You could make a check and redirect user to your landing page if the value passed via GET is incorrect.