Diverting every page to another website

  • Thread starter Thread starter Fred the Ted
  • Start date Start date
F

Fred the Ted

I posted this question yesterday but it never appeared so sorry if you're
seeing this twice. I've a couple of old websites which I want to close but
Google have a few pages that stil show up in the search results and I would
like to be able to send any visitor to a more up-to-date website of mine. How
can this be done? I use FP 2002.
 
Fred the Ted
Two ways I know if!

<-- #1. Index.php -->

<?php
header ('HTTP/1.1 301 Moved Permanently');
header ('Location: http://Your_New_URL_Here.com');
?>

<!-- #2 index.html or index.htm -->

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
<title>Site moved...</title>
<meta http-equiv="refresh" content="5;URL=http://YOUR_NEW_SITE_ADDRESS">
</head>
<body>
YOUR_OLD_SITE_ADDRESS has moved to YOUR_NEW_SITE_ADDRESS
If your browser does not automatically redirect you in 5 seconds,
click <a href="http://YOUR_NEW_SITE_ADDRESS">here</a> to go to the new site.
</body>
</html>

<!-- You can make to the refresh content=5 to content=0 if you are not
making a Body -->
 
I would recommend #2. I find that content=2 is usually long enough, but even
0 is fine
 
Back
Top