How to redirect users to a different page?

A place to ask questions and get help. Be the first on your block to post ...

How to redirect users to a different page?

Postby saltybeagle » Thu Apr 07, 2005 3:43 pm

If you want to redirect from a page that is still there, or is linked to from many external sources, here's some code that will redirect them:
* note: this is a temporary solution, files that are no longer there should be removed permanently... or coded to send a http status code of 302 (moved permanently).

Code: Select all
<html>
<head>
<script type="text/javascript">
<!--
location.replace("http://www.unl.edu/");
//-->
</script>
<noscript>
<meta http-equiv="refresh" content="0; URL=http://www.unl.edu/">
</noscript>
</head>
<body>
</body>
</html>


Just replace 'http://www.unl.edu/' with the correct URL.
Brett Bieber
Image
saltybeagle
 
Posts: 376
Joined: Fri Jan 16, 2004 3:10 pm
Location: 321 Admin

Return to Help & Assistance

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron