Risolto così.
Copio in home page la funzione:
function format_url($url)
{
$url = preg_replace("([.*])U","",$url);
$find = array('"','&','\r\n','\n');
$url = str_replace ($find, '-', $url);
$url = str_replace ('ß', 'ss', $url);
$url = str_replace (array('ö','Ö'), 'oe', $url);
$url = str_replace (array('ä','Ä'), 'ae', $url);
$url = str_replace (array('ü','Ü'), 'ue', $url);
$find = "ÀÁÂÃÅàáâãåÒÓÔÕØòóôõøÈÉÊËèéêëÇçÌÍÎÏìíîïÙÚÛùúûÿÑñ";
$replace = "AAAAAaaaaaOOOOOoooooEEEEeeeeCcIIIIiiiiUUUuuuyNn";
$url = strtr($url,$find,$replace);
$url = strtolower($url);
$url = ereg_replace("[^a-zA-Z0-9]", "-", $url);
while (strstr($url, '--')) $url = str_replace('--', '-', $url);
$url = (substr($url, 0, 1) == '-') ? substr($url, 1) : $url;
$url = (substr($url, strlen($url) - 1, 1) == '-') ? substr($url, 0, strlen($url) - 1) : $url;
return $url;
}
e dopo creo il link così:
echo " <a href=\"phpbb/".format_url($row[topic_title])."-vt$row[topic_id].html\">$row[topic_title]</a> (risposte: $row[topic_replies]) <br>";
in pratica ho aggiunto .vtID.html alla funzione forumat url
ciao