Url Rewrite Greek Characters

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 年 前
Hello ,
I am developing a nopcommerce web site .
I am using url rewrite rules for SEO  but some products and categories contain greek characters .
Unfortunately greek characters are disappeared  at the url .

How can i fix that  ?


Thanks in advance
13 年 前
Locate the UrlHelper class in the solution.  Look at the method GetSEName(string).  It takes away any characters that are not opitimized for SEO.
13 年 前
Thanks a lot .
I just added the greek alphabet and worked correctly
13 年 前
vasilisf wrote:
Hello ,
I am developing a nopcommerce web site .
I am using url rewrite rules for SEO  but some products and categories contain greek characters .
Unfortunately greek characters are disappeared  at the url .

How can i fix that  ?


Thanks in advance


URL Rewrite for other languages

Nop.BusinessLogic/SEO/SEOHelper.cs

I am changed code for support Turkish language.

string OKChars = "abcçdefgğhıijklmnoöpqrsştuüvwxyz1234567890 _-";
            name = name.Trim().ToLowerInvariant();
            var sb = new StringBuilder();
            foreach (char c in name.ToCharArray())
                if (OKChars.Contains(c.ToString()))
                    sb.Append(c);
            string name2 = sb.ToString();
           name2 = name2.Replace(" ", "-");
            name2 = name2.Replace("ç", "c");
            name2 = name2.Replace("Ç", "C");
            name2 = name2.Replace("İ", "i");
            name2 = name2.Replace("ı", "i");
            name2 = name2.Replace("ş", "s");
            name2 = name2.Replace("Ş", "S");
            name2 = name2.Replace("Ü", "u");
            name2 = name2.Replace("ü", "u");
            name2 = name2.Replace("ğ", "g");
            name2 = name2.Replace("G", "g");
            name2 = name2.Replace("Ö", "o");
            name2 = name2.Replace("ö", "o");
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.