T
T
Tanya2016-12-07 18:17:39
Yii
Tanya, 2016-12-07 18:17:39

301 redirect for 11 thousand pages how to do. yii framework?

There is a site on yii..in Yandex webmaster excluded more than 11 thousand pages for 404 errors ..
how to make a 301 redirect for such a large number of pages? Please do not offer paid solutions.
it is necessary to implement it through the php function.
there is this page SITE.ru/tag/%D0%B4%D0%BE%D0%BC%D0%B0.html (where SITE is replaced due to the ban on publishing the site)
In addition to all this, it is necessary that there are no categories in the url. .and immediately went to the product card
where I saw what was being done using if isset // but I didn’t really understand how to apply it
Please with examples if possible

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Makarov, 2016-12-07
@SamDark

If the URL is generated from the base, write your own URLRule.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question