Yii Framework Forum: 301 redirect vs Yii redirect - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

301 redirect vs Yii redirect Rate Topic: -----

#1 User is offline   moginn 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 315
  • Joined: 07-April 12
  • Location:Spain

Posted 28 December 2014 - 05:43 PM

What are the differences (if any) between doing a 301 redirect (modifying the htaccess file) and the Yii redirect?
0

#2 User is offline   moginn 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 315
  • Joined: 07-April 12
  • Location:Spain

Posted 28 December 2014 - 11:54 PM

never mind, I found the answer.

public void redirect(mixed $url, boolean $terminate=true, integer $statusCode=302)


Yii redirect can be set to 301 or 302 just setting de last parameter of the function
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users