Nella index io ho messo questo:
Codice PHP:
//workaround
$sp_words = '(((?!http))((?!javascript))((?!mailto)))';
$source = array();
$source[1] = '/<a (.*?)href=\"http:\/\/dominio.altervista.org/im';
$source[2] = '/<a (.*?)href=\".\/(.*?)/im';
$source[3] = '/<a (.*?)href=\"\/(.*?)/im';
$source[4] = '/<a (.*?)href=\"'.$sp_words.'/im';
$replace = array();
$replace[1] = '<a $1 target="_top" href="http://www.sitonuovo.it/$2';
$replace[2] = '<a $1 target="_top" href="http://www.sitonuovo.it/';
$replace[3] = '<a $1 target="_top" href="http://www.sitonuovo.it/';
$replace[4] = '<a $1 target="_top" href="http://www.sitonuovo.it/$2';
E mi funziona alla grande! Ovviamente con il cloack attivo