I am trying to redirect the page to specific page based on the function return type.
i am using the php header()
to do so. but when i load the page i am getting the error message
Cannot modify header information - headers already sent by (output started at
what is the fault here?
here is what i have done
<?php
if(ifproductPublished($qs) == true){
header('Loaction: not-found.php');
} elseif(ifproductValid($qs) == false){
header('Location: not-found.php');
} else {
?>
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<div class="panel panel-default">
...
?>
How can i resolve this?