Is it possible to ignore a specific number passed through a GET parameter in PHP and always redirect to a specific page?

To ignore a specific number passed through a GET parameter in PHP and always redirect to a specific page, you can check the value of the parameter and use a conditional statement to redirect if the specific number is present. You can achieve this by using the header() function to redirect to the desired page.

<?php
// Check if the specific number is present in the GET parameter
if(isset($_GET['number']) && $_GET['number'] == '123') {
    // Redirect to a specific page
    header("Location: specific_page.php");
    exit();
}
?>