Diverting every page to another website

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.
 
H

Hot-text

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 -->
 
T

Trevor Lawrence

I would recommend #2. I find that content=2 is usually long enough, but even
0 is fine
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top