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
How to merge values of two arrays into a single array?
Is runtime polymorphism overriding?
Write a select query that will be displayed the duplicated site name and how many times it is duplicated?
Can you define an argument as a reference type?
How to get the position of the character in a string in php?
Is c similar to php?
Why do we use namespace in php?
What is string function sql?
What are default session time and path?
What is the current stable version of php? What advance thing in php7?
What is faster in php?
Which software is used to run php programs?
What is regular expression in javascript?
Which will start a session?
Define object-oriented methodology?