PHP is open source scripting language. It\'s widely used to develop web applications.  Home Web Programming PHP Auto Redirect
Your Ad Here

Auto Redirect


Auto RedirectNote 1: You don't have to know PHP programming to do this tutorial. Note 2: I assume that your server supports files with .php extension. If not, you won't be able to do this tutorial. For more info on how to install PHP on your PC go to Php.net

1. Open notepad or any other HTML Editor and paste the following code.

<?
$URL="http://www.adesdesign.net";
header ("Location: $URL");
?>
<html>
<title>Ades Design</title>
<head></head>
<body>
</body>
</html>

2. Save as ades.php and upload to your web server. Now access it through your browser at http://www.yourdomain.com/ades.php You should be automatically redirected to my website.

3. Now customize your script. Put your own link instead of Adesdesign.net and change the title Ades Design.

You can also put some text or link inside the body. In case your redirection does not work people will be able to click and go to the desired page.



Author's URL: Ades Tynyshov
Thank you for voting.
Rate this Materials:
Bad 
1 2 3 4 5 Excellent
print this page subscribe to newsletter subscribe to rss

Web programming � everything from the basics of visual design and architecture to the specifics of applications, graphics, and scripting. More Web Programming: Most Popular Materials | Fresh Materials | More PHP Tutorials at LearnPHP.org

Add comments to "Auto Redirect"

Only registered users can write comment

Reader's comments
comments itsols August 28, 2007 says:
Auto Redirect
Short and sweet - Just the way I need it.

Thanks - Great job; Well done.

Khalid