SEARCH
Newsletter
Subscribe to get design
tips, latest trends, free
stuff and more.
It doesn't look like an e-mail address

hosting

  Web Programming PHP Auto Redirect

Auto Redirect

ades PHP May 27, 2005

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.

   
subscribe to newsletter