PHP redirect Method to another page


PHP redirect Method to another page

PHP redirect Method

In this Tutorial we are Going to learn About PHP redirect to another page or Link this method will help to redirect a visitor’s to our New website From Old website this method is also used in lot of redirection purpose ok let’s come to our tutorial.

You can use this codes at your header() function in PHP

<?php
header('Location: mypage.php');
?>
<?php
header('Location: /directory/mypage.php');
?> 

<?php
header('Location: http://www.website.com/forum/');
?>

HTML Page Redirect Method

// For example, redirecting to www.newwbesite.com <meta http-equiv='refresh' content='0;url=http://www.newwebsite.com'>

Hope this tutorial will help you to Redirect the page’s or link Php & HTML

 

Alos Check – Send PHP E-mail From Gmail SMPT


Was this article helpful?
Thanks!

Your feedback helps us improve Allwebtuts.com



3 Shares
+11
Tweet
Share1
Pin1
Stumble