When I call:
$this->_redirect($url, array('code'=>301));
I get redirected, but the http code is 302 instead of 301. Any idea why?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It appears that using the _redirect method will always set the code to a 302. If you’d like to manually change the response code, use a redirector instead.