尝试使用:
<meta http-equiv="refresh" content="0; url=http://example.com/" />注意:将其放在头部。
此外,对于较旧的浏览器,如果您添加快速链接,以防它无法正确刷新:
 <p><a href="http://example.com/">Redirect</a></p> 
将显示为
这仍然允许您通过额外点击到达您要去的地方。
我会使用meta和JavaScript 代码 ,并且会有一个链接以防万一。
<!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>为了完整起见,我认为最好的办法是尽可能使用服务器重定向,因此请发送301状态代码。这可以通过使用Apache 的 .htaccess文件或使用WordPress 的众多插件轻松完成。我相信所有主要内容管理系统都有插件。此外,如果您的服务器上安装了重定向,则 cPanel 可以非常轻松地配置 301 重定向。 
<script type="text/javascript">
    window.location.href = "http://example.com";
</script><meta http-equiv="refresh" content="0;url=http://example.com">