Where to put a header redirect
-
Hi folks,
One of my sites is about to move, do you know whereabouts I need to put this code:
<?php header("Location: https://www.example.com/"); /* Redirect browser */ /* Make sure that code below does not get executed when we redirect. */ exit; ?>
I’ve added it to the top of inde.php, but nothing happens.
Thankyou
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Where to put a header redirect’ is closed to new replies.