Why PHP header redirection after GET - Not working...?

<?php if ($_GET["showprivacypolicymobile"]=="show") { header('Location: http://www.cccc.com/ccc/Apps/policy.php'); die(); } ?>

why PHP header redirection after GET - Not working… ? what’s is the solution of redirection based on url param…?

I stab a guess at ‘header already sent’. turn up error reporting to see error messages, if there are any.

2 Likes

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.