【发布时间】:2013-02-06 12:42:30
【问题描述】:
我只是想从例如重定向www.example.com/example 到另一个 URL。
我在 example.com/example 中使用这个 index.html 对其进行了测试,它看起来像这样:
<html>
<head>
<title>TITLE</title>
<meta http-equiv="refresh" content="0; url=http://sample.org/sample">
</head>
Goto to URL <a href="http://sample.org/">http://sample.org/sample</a>
manually.
</html>
它工作得很好。然后我将“http://sample.org/sample”URL 更改为我想要重定向到的 URL。 但是问题就出现了。它仍然将 example.com/example 重定向到 sample.org/sample 而不是实际的。
我试图清除 Firefox 中的现金、历史记录和 cookie,并使用“ipconfig /flushdns”进行 DNS-Flush。 我还删除了文件夹示例并新建了它。但没有任何帮助。
当我访问 example.com/example/index.html 时,它会重定向到我想要的 URL。但如果我访问的是 example.com/example,它仍然会重定向到不需要的 sample.org/sample。
任何胶水如何解决这个问题?
【问题讨论】:
标签: caching redirect meta http-redirect