[Solved] How to redirect to another URL if query string match? [closed]


You should really have tried this yourself first, but in PHP it’s pretty basic

<?php 
if(isset($_GET['id'])){
    if($_GET['id'] == xx){
        header('Location: http://www.anotherURL.com');
        exit ();
    }
}
?>

Substitute xx for whatever you want to test the id against.

3

solved How to redirect to another URL if query string match? [closed]