How do I make a redirect in PHP?
Asked 07 September, 2021
Viewed 2.2K times
  • 63
Votes

Is it possible to redirect a user to a different page through the use of PHP?

Say the user goes to www.example.com/page.php and I want to redirect them to www.example.com/index.php, how would I do so without the use of a meta refresh? Is it possible?

This could even protect my pages from unauthorized users.

30 Answer