Redirecting one URL to another
Use Notepad or another text editor to create a new file.
- Name it with the name of the file that you intend to redirect from. Make sure to make the extension .htm or .html. (I called it example.htm )
- "Copy and paste" the following HTML code into this file.
(All lines given in red below. That's all lines between and including <HTML> and </HTML>)
- Change the URL to the URL of the file you want to redirect to. (This code is for an absolute link. You can also use relative links.)
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript1.1">
function doReplace() {;
location.replace("http://www.austincc.edu/mparker/prereqm/redir.htm");
}
</SCRIPT>
</HEAD>
<BODY onload="doReplace();">
</BODY>
</HTML>
Last updated October 16, 1999. Mary Parker