【发布时间】:2015-11-25 13:27:56
【问题描述】:
我正在使用网络服务器。
之前:有一个网站。 “domain.com/”重定向到“domain.com/index.html”(逻辑),该页面重定向到“domain.com/en/index.html”,标签为: "meta http-equiv="refresh" content="0;url=en/index.html""
现在:有一个 Wordpress(我安装了它),没有 index.html,但有一个 index.php。
问题:当我想访问“domain.com”时,我被重定向到 domain.com/en/index.html。
我知道这是一个缓存问题,但如何禁用此缓存。重定向?
我找到了关于 htaccess 的解决方案(添加 Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate" )但它不起作用。
【问题讨论】:
标签: php html wordpress .htaccess redirect