added headers management in response
redirection example in index.php