You are here: irt.org | FAQ | JavaScript | Link | Q1450 [ previous next ]
Say the old url is http://www.old.com/ and the new url is http://www.new.com/ then try:
<script language="JavaScript"><!-- ThisPage = '' + location.href; if (ThisPage.indexOf('old') !=-1) location.href = 'http://www.new.com'; //--></script>