Is it possible to redirect a user to a different page through the use of PHP?
Say the user goes to and http://www.example.com/page.php I want to redirect them to,www.example.com/index.php. how would I do so without the use of a meta refresh? Possible?
This could even protect my pages from unauthorized users.
Hello,
Thank you for reaching out to the Developer Support team here at Constant Contact.
How quickly are you wanting them to go from page.php to index.php? Do you plan on displaying content on page.php? If you are just looking to use page.php to run code and then direct back to index.php you can place
header('Location: index.php'); exit();
at the end of your code before any HTML is loaded and it will direct them after running the code.
Regards,
David B.
Tier II API Support Engineer
The holidays have come and gone. For many seasonal businesses, this means the rush of shoppers has decreased as well. Instead of turning off the lights and waiting for spring, make your email marketi...
See Article