JS redirige en php

<?php echo "<script>
    window.location = 'http://www.example.com/newlocation';
</script>"; ?>
Energetic Elk