// If header throws an error - use this as temp solution. <?php echo '<script type="text/javascript"> location.replace("https://your_replaced_url_location_goes_here.com/"); </script>'; ?>