PHP Redirection

Aug 11, 2009 Author: Developer

To redirect a user from the page they entered to a different web page you can use a simple PHP script. One reason you may want to do this is that the page they are trying to access no longer exists. If you use this method, thay can be easily transvered to the new page without having to click a link to continue. Good thing is that it works on all browsers. Here is how : 1.


You need to replace the URL above with the URL you wish to direct to.

2.Be sure that you do not have any text sent to the browser before this, or it will not work. Your safest bet is to simply remove all content from the page but the redirect code.

<html>


views 3472
  1. Add New Comment