In your example, the page number is available to your PHP code as $id.
So this is just a matter of testing the value of $id and using common flow-control logic. Then call the header() function to perform the redirection.
It would look something like this:
<?PHP
if(($id > 0) && ($id < 11))
header("Location: $id.php3");
else
header("Location: missing.php3");
?>
Note that there must NOT be any html in the file before this code, or the header() function will generate an error.