Web Programming  Home Web Programming PHP Auto Redirect
rss

Auto Redirect

Author: Ades Tynyshov More by this author


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.



Rate this Material: Bad 1 2 3 4 5 Excellent
print this page tell a friend subscribe to newsletter subscribe to rss

Read/Add comments to "Auto Redirect"

comments  itsols August 28, 2007 says:
Auto Redirect
Short and sweet - Just the way I need it. Thanks - Great job; Well done. Khalid