PHP 301重定向实际上是在做302重定向 [英] php 301 redirects actually doing a 302 redirect
本文介绍了PHP 301重定向实际上是在做302重定向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直在为此搜索,但是似乎没有人知道答案.
I have been googling for this but no one appears to have the answer.
这篇文章很好地描述了这个问题:
This post describes the problem well:
http://www.mail-archive .com/php-general @ lists.php.net/msg198576.html
服务器是Windows 2008 快速CGI PHP 5
Server is Windows 2008 FastCGI PHP 5
推荐答案
目前看来,此问题的唯一答案是在使用PHP时在IIS7上不使用FastCGI(由于FastCGI中的错误)-垃圾,因为它很快.使用isapi可以使301重定向按预期方式工作,但速度并不快.
It appears that the only answer to this one at the moment is to not use FastCGI on IIS7 when using PHP (because of a bug in FastCGI) - which is rubbish because it's very quick. Using isapi allows the 301 redirects to work as they should, but it's not as fast.
这篇关于PHP 301重定向实际上是在做302重定向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文