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


Please Help Members By Posting Answers For Below Questions

Why php is also called as scripting language?

537


Can I write php code in html file?

528


What is difference between count or sizeof function in php?

520


Do I need to install php after xampp?

518


Explain me what are the 3 scope levels available in php and how would you define them?

717






What is the function used to change the root directory in PHP?

546


How send email in php?

522


Tell me whether it is possible to share a single instance of a memcache between multiple php projects?

528


Why php is used in html?

519


What is session management php?

521


Why many companies are switching their current business language to php?

577


Does php need to be installed?

491


What is php and features of php?

441


What is == and === in php?

493


Does php 7 support multiple inheritance?

501