Dear all
i read some online tutorial and i want to do seo my url but it not working any idea for it? my slug code below
PHP Code:
<?php
setlocale
(LC_ALL'en_US.UTF8');
function 
slug_url($str) {
    
$clean iconv('UTF-8''ASCII//TRANSLIT'$str);
    
$clean preg_replace("/[^a-zA-Z0-9\/_| -]/"''$clean);
    
$clean strtolower(trim($clean'-'));
    
$clean preg_replace("/[\/_| -]+/"'-'$clean);
    return 
$clean;
}
?>
and the url i want to do it is
http://www.sabaychet.com/articledeta...to-make-an-suv
when i used slug my url become
http://www.sabaychet.com/articledeta...to-make-an-suv
-------
The requested URL /articledetailphpph-sc-art-titleenvolkswagen-bentley-to-make-an-suv was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
-----------------
can not find the information so how to sold this problem?
Best regards,
Heng