【问题标题】:Can I redirect a local static html page to an online resource?我可以将本地静态 html 页面重定向到在线资源吗?
【发布时间】:2013-09-28 02:38:22
【问题描述】:

我正在编写一个小型应用程序扩展,包含一些帮助的唯一方法是通过本地静态 html 页面(如 c:\program files\help.htm)。我不能为此使用 PHP。有没有办法将这样的页面重定向到在线页面?

【问题讨论】:

标签: html http-status-code-301 http-redirect static-pages


【解决方案1】:

当然,您可以使用 html 元标记来指示浏览器重定向到另一个页面。把它放在你的<head>

<meta http-equiv="refresh" content="0; url=http://example.com/"> 

相关问题:How to redirect from .html page?

【讨论】:

  • 感谢一百万!你是对的,它是重复的。我用谷歌搜索“从本地静态 html 重定向”,但我没有找到这样的问题的答案。
猜你喜欢
  • 1970-01-01
  • 2023-02-10
  • 2013-05-27
  • 2017-02-13
  • 1970-01-01
  • 2016-09-03
  • 1970-01-01
  • 2010-12-27
  • 2011-02-13
相关资源
最近更新 更多