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
Why php is also called as scripting language?
Can I write php code in html file?
What is difference between count or sizeof function in php?
Do I need to install php after xampp?
Explain me what are the 3 scope levels available in php and how would you define them?
What is the function used to change the root directory in PHP?
How send email in php?
Tell me whether it is possible to share a single instance of a memcache between multiple php projects?
Why php is used in html?
What is session management php?
Why many companies are switching their current business language to php?
Does php need to be installed?
What is php and features of php?
What is == and === in php?
Does php 7 support multiple inheritance?