寰智博客

  1. 首页
  2. 技术教程
  3. 正文

记录一下apache中location 不生效的问题

2021年10月8日 1237点热度 0人点赞 0条评论

最近在客户的机器上部署了 基于 nginx + thinkphp 开发的天翼解析器

发现在客户的机器上使用 header("location:xxxxx"); 操作一直不生效

仔细观察 apache 和 nginx 的响应头部发现,nginx 会在识别到location 头部的时候自动更改header 中的status 字段成 301

但是apache 并不会自动执行这个操作 ,所以需要手动在后面加上header("status:301");

 

标签: 暂无
最后更新:2021年10月8日

SudemQaQ

这个人很懒,什么都没留下

打赏 点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

COPYRIGHT © 2025 blog.szhcloud.cn 寰智博客. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

苏ICP备16064625号-1

本站使用 又拍云 Logo 提供CDN加速/云存储服务