今天看蜘蛛发现百度访问了10来次一个链接,一直301 点开一看是个重定向的死循环
织梦cms 首页重定向跟nginx的404的重定向搞来死循环了
直接 把首页那
header('HTTP/1.1 301 Moved Permanently'); header('Location:index.html'); 改为 header('HTTP/1.1 301 Moved Permanently'); header('Location:/');
就直接重定向到首页了
今天看蜘蛛发现百度访问了10来次一个链接,一直301 点开一看是个重定向的死循环
织梦cms 首页重定向跟nginx的404的重定向搞来死循环了
直接 把首页那
header('HTTP/1.1 301 Moved Permanently'); header('Location:index.html'); 改为 header('HTTP/1.1 301 Moved Permanently'); header('Location:/');
就直接重定向到首页了
转载于:https://www.cnblogs.com/xxxuxin/p/10526080.html