I've got a huge problem with my php-file. I want to redirect to another site through header(). But the if-clause doesn't get accepted and I can't think of any problem with it. I tried everything, but it won't work. Could you help me?
<?php
session_start();
include("php/connect.php"); //connection to database
$test = 0;
if($test == 0){
header("Location: /nextsite.php");
}
?>