php 301 redirects actually doing a 302 redirect

后端 未结 4 1071
独厮守ぢ
独厮守ぢ 2021-01-26 17:37

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/

4条回答
  •  没有蜡笔的小新
    2021-01-26 18:08

    I don't have PHP here to test this, but wouldn't this produce a 301?

    header('Location: http://www.example.com/', true, 301);
    

提交回复
热议问题