fixed redirect errors

Author:    pef-secure <pef-secure@yandex.ru>