1 muff Jul 29, 2008 11:57
3 austriaco Jul 30, 2008 10:19
It is hardcoded. The function you want to change is replace_special_chars() in inc/locales/_charset.funcs.php around line 76:
// Replace non acceptable chars
$str = preg_replace( '/[^A-Za-z0-9_]+/', '-', $str );
This function is called by ultitle_validate() (on inc/items/model/_item.funcs.php line 127)
4 waltercruz Jul 30, 2008 17:04
This was changed from underscores to dashes sometime ago, due to SEO motivation, I think.
I don't recall this as a setting - but it could be. It MIGHT be a hack in a file somewhere as well. Anyway my understanding is that a little bit of testing showed that search engines like dashes more than underscores in titles. Specifically, two identical pages except one has dashes and the other underscores for spaces in the title results in the dashed one getting SE love over the underscored page.