Mengubah URL menjadi seo friendly dengan PHP. Contoh :
http://belajarwebdesign.com/?p=31
akan berubah menjadi
http://belajarwebdesign.com/off-topic/export-delicious-ke-google-bookmark/
function getSeo($text) { // replace non letter or digits by - $text = preg_replace('~[^\\pL\d]+~u', '-', $text); // trim $text = trim($text, '-'); // lowercase $text = strtolower($text); // remove unwanted characters $text = preg_replace('~[^-\w]+~', '', $text); if(strlen($text) > 70) { $text = substr($text, 0, 70); } if (empty($text)) { //return 'n-a'; return time(); } return $text; }