Do not remember me!
/ / / Custom seo url in your language - dots in url

Custom seo url in your language - dots in url

Hi guys !

I have a problem with links in dle, in standard my links look like that:

http://mysite.pl/2015/10/07/wizie-nienawici.html

and its not proper name, it shoudl be /więzień-nienawiści.html

so I used hack called "Custom seo url in your language" and it was fine, but spaces turn into %20 and link look like that:

http://mysite.pl/2015/10/07/więzień%20nienawści.html

I want to change %20 into dot, make link look like:

http://mysite.pl/2015/10/07/więzień.nienawści.html

Sorry for my bad English request Please help me love Added by: in PHP Questions on


0

Comments 2

  1. MongKol
    0
    MongKol Currently Offline → 14 October 2015 12:13

    Not really expert on this field, but maybe you can try to create new function like this

    after:
    $alt_name = ( trim( $alt_name ) == "" or !$alt_name ) ? $title : $alt_name;

    add
    function urlSafeString($alt_name)
    {
        $alt_name = eregi_replace("[^a-z0-9\040]","",str_replace("."," ",$alt_name));
        $alt_name = eregi_replace("[\040]+",".",trim($alt_name));
        return $alt_name;
    }
     N/A |  37
  2. Kierba
    0
    Kierba Currently Offline → 28 October 2015 07:26

    Thank you for your replay but its still not working with that new function sad
     1 |  1

Information

Would you like to leave your comment? Please Login to your account to leave comments. Don't have an account? You can create a free account now.