Bueno aquí comparto este script en PHP que busca una cadena dentro de la URL y la reemplaza por la cadena que deseas.

Aquí el Código
<?php
$cnn = mysql_connect('localhost', 'root', 'root');
mysql_select_db('name_bd');
$searchText = "/home/project1/www";
$replaceText = "/var/www/project1";
$result = mysql_query('SELECT id_file,chr_path FROM tb_file WHERE chr_path LIKE "%'.$searchText.'%"');
$count = 0;
while ($row = mysql_fetch_array($result)) {
$count++;
$newContent = str_replace($searchText, $replaceText, $row['chr_path']);
//$newGuid = str_replace($searchText, $replaceText, $row['guid']);
$query = sprintf("UPDATE tb_file SET chr_path='%s' WHERE id_file = {$row['id_file']}",
mysql_real_escape_string($newContent));
$update = mysql_query($query);
}
echo $count;
?>