How many ways I can redirect a PHP page?
Answer Posted / rakesh kumar nautiyal
Page redirect
Description
If you want a PHP redirect script that redirects visitors
from a page to a specific URL then this is it. It sends the
user from one web page to a different web page address. It
is a good alternative to using the meta tag http-equiv
option.
The code
<?php/** * Place in a blank PHP page */// Change to the URL
you want to redirect to$URL="http://www.page.com";header
("Location: $URL");?>
Is This Answer Correct ? | 10 Yes | 4 No |
Post New Answer View All Answers
What is mysqli php?
Are parent constructors called implicitly inside a class constructor?
What is the difference between array_pop() and array_push()?
What is api laravel?
What are the string functions in php?
What is csrf token and why it is required?
What is use of count() function in php?
What is the use of array_search() in php?
How can we make a constant in php?
How is traits used in php?
What does == mean in php?
Is null in php?
Is php outdated 2019?
How to create a table using php?
What are the main error types in php and how do they differ?