I'm trying to redirect 2 URL randomly but it not working.
My Code
<?php
$urls=readStack();
if(empty($urls)) {
    $urls = shuffle(array('https://domain1.com', 'https://domain2.com')); 
    $url=array_pop($urls);
    storeStack($urls);
    header('Location:' .$url); 
?>
Help how to fix this?
 
     
    