Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.9k views
in Technique[技术] by (71.8m points)

宝塔面板中怎么取消重定向?

如题,我之前是在nginx配置文件中设置过重定向,现在删了那段重定向代码,还是会域名重定向,请问是否是nginx缓存导致,如果是的话该怎么清除缓存?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

没用过宝塔。

不过先问一句,你之前配置的是 302 临时重定向还是 301 永久重定向?

如果是 301,相当于你都已经告诉浏览器了:“下次别来问我了,直接去新地址吧”,浏览器压根就不会请求你服务器。

这种时候你只能清除浏览器缓存来重试了。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...