[thelist] REDIRECT in a hurry
david braun
david.braun at centralnet.ch
Mon Apr 30 13:47:55 CDT 2001
On 24.04.2001 at 21:41 Uhr, rwd at csi1st.net (Ron Dorman) wrote:
> What is the fastest way to make an index.html redirect to another page
> immediately upon access. Temporary until other things can be fixed and
> arranged. QUICK AND DIRTY is ok (preferred) right now.
>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<script type="text/javascript">
<!--
location.href='http://www.foo.com';
//-->
</script>
<meta http-equiv="Refresh" content="1; URL=http://www.foo.com">
<title>foo</title>
<meta name="generator" content="BBEdit 6.1.1">
</head>
<body>
</body>
</html>
ifthe client reads javascript, hes redirected before anything has
loaded, else he's taken away with the <meta http-equiv="refresh"
hth
david
More information about the thelist
mailing list