Following my nginx rule:
error_page 404 /page.php;
Following the code of page.php:
<?php
echo 1;
header('location: ../page2.php');
?>
The output in case of 404 is 1
and the page doesn't redirect to page2.php, I had tried to remove echo 1;
but same output. How to solve?