How to redirect users using PHP

Words
60
Reading
1 min
8y
Listen to this post
~1 min

Coding-aeon.png

If you want to redirect user to any page you want in your website, you can use the PHP function: header.

This function has to run before any HTML is created on the page otherwise it wouldn't work:
header("Location: anotherpage.html")

Thank you! Stay tuned for more coding tips, tricks and much more!

resh aquasummit.png

How to redirect users using PHP | Ecency