File: //proc/thread-self/root/proc/self/cwd/redirect_sample.php
<?php
// if(isset($_GET['banner']) == 'top01'){
// setcookie('banner','top01', time() + (86400 * 30), "/");
// } elseif (isset($_GET['banner']) == 'right01'){
// setcookie('banner','right01', time() + (86400 * 30), "/");
// } elseif (isset($_GET['banner']) == 'bottom01'){
// setcookie('banner','bottom01', time() + (86400 * 30), "/");
// } else {
// setcookie('banner', $_COOKIE['banner'], time() + (86400 * 30), "/");
// }
if (isset($_GET['id']) && $_GET['id'] == '02'){
header ('Location: https://yahoo.com');
} else {
header ('Location: https://google.com');
}
?>