PDA

View Full Version : Redirecting a web page


craighj
11-14-2002, 02:03 AM
I have a web page that I don't want taken down as it's still linked by some search engines and have done a search for the appropriate script that will send the viewer to the new site url. The problem I am having is that the script I found only refreshes my page and doesn't send me onto the url I want it to:

<meta http-equiv="Refresh"
content="5"; URL=http://myurlhere.htm">

Any suggestions?

boywonder
11-14-2002, 02:20 AM
Try losing the quote following the 5...

<meta http-equiv="Refresh" content="5; URL=http://myurlhere.htm">

JustAsking
11-14-2002, 02:28 AM
I'm not too sure, but I think you would have to contact your website host and request for your web page to be redirected to another url address you want to use.

Also, give this code a go, got it from a post here:


<script>
<!-- Begin
redirTime = "1000";
redirURL = "URL TO REDIRECT";
function redirTimer() { self.setTimeout("self.location.href = redirURL;",redirTime); }
// End -->
</script>

craighj
11-14-2002, 05:14 AM
Thanks to both of you for your replies. boywonder I tried that & it worked perfectly, thanks.