301 redirect

  • Thread starter Thread starter Fred
  • Start date Start date
F

Fred

can anyone tell me how I can redirect a single page to another page within
the same web. I use FP2002. TIA Fred
 
Put the following immediately after the <head> tag:

<SCRIPT language="JavaScript1.1">
<!--
location.replace("new URL");
//-->
</SCRIPT>
<noscript>
<meta http-equiv="refresh"
content="5; URL=new URL">
</noscript>

(Replace "new URL" with the entire URL of the page you want to go to.) It is
also good to put a note on the page like:

This page has been moved. If you are not automatically redirected within
five seconds, click here. and put a link to the new page.

Wally S
 
Using ASP

<%
Response.Redirect "redirectpage.asp"
%>
the above redirects immediately; I don't know if you can use it like a
splash screen that then goes to another page after 5 seconds or whatever.

or

Using the meta tag

<meta http-equiv="refresh" value="5; url="redirectpage.html">

This one, you can make it pause before it redirects the "value=5" bit tells
you how long (in seconds) the "url" bit is the page you want redirect to.

The line of code goes in the head along with the other meta tags.

I'm sure Javascript can manage it as well; but I'm not familiar enough with
it to provide an example.
something like Document.Refresh("yourpage"); or something (but don't quote
me on that).

sites that might help

http://javascript.internet.com
http://www.hotscripts.com

Hope this helps
 
Back
Top