SetTitle("Company News"); ?>"ASC"), $arFilter, false, false, $arSelect); while($ob = $res->GetNextElement()) { $arFields = $ob->GetFields(); iwrite($arFields); LocalRedirect("/pr/".$arFields["CODE"]."/", false, "301 Moved permanently"); } } ?>