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 difference between php and wordpress?
What does php exit do?
Explain some most commonly use string functions in php?
Is it worth learning php in 2019?
Does exist in php?
What is a php form?
How can we change the maximum size of the files to be uploaded?
Can you use both this () and super () in a constructor?
Can we set session value in javascript?
What is an associative array?
Explain about a search-friendly site looks like?
How is it possible to know the number of rows returned in result set?
What is include in php?
How to find datatype of variable in php?
Where do I run php code?