<!DOCTYPE HTML><html lang="en-US"><head><meta charset="UTF-8"><meta http-equiv="refresh" content="0; url=http://example.com"><script type="text/javascript">window.location.href = "http://example.com"</script><title>Page Redirection</title></head><body><!-- Note: don't tell people to `click` the link, just tell them that it is a link. -->If you are not redirected automatically, follow this <a href='http://example.com'>link to example</a>.</body></html>
<html><head>...<meta HTTP-EQUIV="REFRESH" content="seconds; url=your.full.url/path/filename">...</head><body>Don't put much content, just some text and an anchor.Actually, you will be redirected in N seconds (as specified in content attribute).That's all....</body></html>
正确的客户端url重定向代码如下所示(使用Internet Explorer 8和较低的修复并且没有延迟):
<!-- Pleace this snippet right after opening the head tag to make it work properly -->
<!-- This code is licensed under GNU GPL v3 --><!-- You are allowed to freely copy, distribute and use this code, but removing author credit is strictly prohibited --><!-- Generated by http://insider.zone/tools/client-side-url-redirect-generator/ -->
<!-- REDIRECTING STARTS --><link rel="canonical" href="https://stackoverflow.com/"/><noscript><meta http-equiv="refresh" content="0; URL=https://stackoverflow.com/"></noscript><!--[if lt IE 9]><script type="text/javascript">var IE_fix=true;</script><![endif]--><script type="text/javascript">var url = "https://stackoverflow.com/";if(typeof IE_fix != "undefined") // IE8 and lower fix to pass the http referer{document.write("redirecting..."); // Don't remove this line or appendChild() will fail because it is called before document.onload to make the redirect as fast as possible. Nobody will see this text, it is only a tech fix.var referLink = document.createElement("a");referLink.href = url;document.body.appendChild(referLink);referLink.click();}else { window.location.replace(url); } // All other browsers</script><!-- Credit goes to http://insider.zone/ --><!-- REDIRECTING ENDS -->
<!DOCTYPE html><html><head><meta charset="UTF-8"><title>Redirect to a page</title></head><body onload="window.location.assign('http://example.com')">
</body></html>