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

How to merge values of two arrays into a single array?

725


Is runtime polymorphism overriding?

687


Write a select query that will be displayed the duplicated site name and how many times it is duplicated?

791


Can you define an argument as a reference type?

747


How to get the position of the character in a string in php?

843


Is c similar to php?

678


Why do we use namespace in php?

675


What is string function sql?

719


What are default session time and path?

816


What is the current stable version of php? What advance thing in php7?

739


What is faster in php?

809


Which software is used to run php programs?

725


What is regular expression in javascript?

669


Which will start a session?

763


Define object-oriented methodology?

802