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
Where can I find php ini file?
Why is php so popular?
Is facebook still in php?
What are php keywords?
How to find datatype of variable in php?
What language is similar to php?
What is mvc? Why its been used?
What is difference between readonly and constant?
How do you debug php?
Explain the different types of errors in php.
how to open & closing opening period in fico
Tell me is it possible to protect special characters in a query string?
How to check curl is enabled or not in PHP
What is php in simple words?
Explain me the difference between include and require?