можно попробывать
$content = str_replace('<a href="?act=download','<a href="http://films.gegas.ru/download',$content);