<?php
$url='../w/main.html';
echo "<script>location.href='$url'</script>";
?>
echo '<script>location.href="./write.html"</script>';
<?php
$url='../w/main.html';
echo "<script>location.href='$url'</script>";
?>
echo '<script>location.href="./write.html"</script>';