Answer the question
In order to leave comments, you need to log in
How to write redirect 410 for yii yii2?
You need to assign Status Code to old links: 410
tried in htaccess: Redirect 410 /old_link does not work
Answer the question
In order to leave comments, you need to log in
I solved the problem by adding to the end of the ErrorDocument:
RewriteRule ^old_link - [G]
ErrorDocument 410 default
I don't really understand what's going on, but:
Yii1:
//...
Yii::app()->getRequest()->redirect($link, true, 410);
//...
//...
Yii::$app->getResponse()->redirect($link, 410);
//...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question