Redirect And Keep Referer

manudevil20

Power Member
Joined
Mar 28, 2008
Messages
686
Reaction score
282
Hi everyone. I have done a simple redirect on my 404 page that goes to a different domain. How can i have it so i keep the referer. Thanks
 
Code:
<html>
<head>
<title>Redirecting</title>
<script type="text/javascript">
function redirect(url)
{
	if(document.all){
		document.write("<a id='targeturl' href='"+url+"' style='display:none;'>Redirecting</a>");
		document.getElementById("targeturl").click();
	}else{
		window.location=url;
	}
}
</script>
</head>
<body 
onload="redirect('http://www.targeturl.com/')">
</body>
</html>
 
I am so happy to help you out. I am new to this forum for about three days. Looking forward to getting your help and support in future.
 
Back
Top