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 mean tnq
List types of array are available in php?
Why do we use session?
What is get and post method in php?
How to remove the new line character from the end of a text line in php?
What are the benefits of using php and mysql?
Why php language is used?
Do you know how can php and html interact?
What is a class in php programing?
Explain briefly about a search-friendly site looks like?
What is composer used for?
what is difference between PHP4 , PHP5
Is python easier than php?
What is the difference between query and question?
What is difference between print_r and echo in php?