Advertising PICS Tools // The best online resource for Webmasters!

Your Ad Here

 

PHP Tutorials > Redirection

PHP redirection can be used virtually for anything. Many use this simple relocation form for user systems. There are various ways of redirecting your page but the PHP way is definately the fastest and most reliable.

Open up the page you would like to be redirected.

Above all of your HTML (if any) add the lines below:


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

Now make sure you changed "http://www.yourpage.com" to whatever the page is you are redirecting to.

Save your file and make sure you have your .php extension.

Upload and try it out. If you are running on a slow web server it could tak a few seconds for the page to relocate.

Go Back To PHP Tutorials

 

 

Mixonic - Professional CD & DVD Duplication

Advertising | Services | Support
Copyright © 2007 All Rights Reserved.

Welcome
Username:
Password:

Register | Forgot Password
Spankin New
Blog
11.04.07 Are You Ready -- Affiliate Programs and Mobile PT?
09.27.07 One of the Biggest Scams Ever, Watch Out
09.26.07 Johnny Appleseed Day -- Delicious Day
09.25.07 What Do Wendie Ann Schweikert, Allena Ward, Nan Goldin, and Halo 3 Have In Common? Google.
09.21.07 Dover, De - Small Town, Big Crime
More...

Server Status

Check to see if your website's server is running the way you want it
Short Url
Have a lengthy web address? With our new program you can shorten it!


Services
Tutorials
Have a problem? We can help, Check out our tutorials and support forums!