I'm has been patch 3 file for SEO...crazydog2401 wrote:Hi, all.
New code is very better..., don't scan all link on site.
demo : http://timmuaban.com/may-vi-tinh/may-ti ... 24ghz.html
I'm test with my site 1 languague latin....
1. open file /admin/config.php to add a function sanitize_title.
Code: Select all
function sanitize_title($title) {
// Preserve escaped octets.
$title=preg_replace('|%([a-fA-F0-9][a-fA-F0-9])|','---$1---',$title);
// Remove percent signs that are not part of an octet.
$title=str_replace('%','',$title);
// Restore octets.
$title=preg_replace('|---([a-fA-F0-9][a-fA-F0-9])---|','%$1',$title);
$title=strtolower($title);
$title=preg_replace('/&.+?;/','',$title);
// kill entities
$title=preg_replace('/[^%a-z0-9 _-]/','',$title);
$title=preg_replace('/\s+/','-',$title);
$title=preg_replace('|-+|','-',$title);
$title=trim($title,'-');
return $title;
}