Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+4 votes
2.9k views
in Q2A Core by
edited by

Go to \include\qa-util-string.php

Find $qa_utf8removeaccents=array and add this:

"\xD0\xB0"=>"a", "\xD0\x90"=>"A",
"\xD0\xB1"=>"b", "\xD0\x91"=>"B",
"\xD0\xB2"=>"v", "\xD0\x92"=>"V",
"\xD0\xB3"=>"g", "\xD0\x93"=>"G",
"\xD0\xB4"=>"d", "\xD0\x94"=>"D",
"\xD0\xB5"=>"e", "\xD0\x95"=>"E",
"\xD1\x91"=>"yo", "\xD0\x81"=>"YO",
"\xD0\xB6"=>"zh", "\xD0\x96"=>"ZH",
"\xD0\xB7"=>"z", "\xD0\x97"=>"z",
"\xD0\xB8"=>"i", "\xD0\x98"=>"I",
"\xD0\xB9"=>"j", "\xD0\x99"=>"J",
"\xD0\xBA"=>"k", "\xD0\x9A"=>"K",
"\xD0\xBB"=>"l", "\xD0\x9B"=>"L",
"\xD0\xBC"=>"m", "\xD0\x9C"=>"M",
"\xD0\xBD"=>"n", "\xD0\x9D"=>"N",
"\xD0\xBE"=>"o", "\xD0\x9E"=>"O",
"\xD0\xBF"=>"p", "\xD0\x9F"=>"P",
"\xD1\x80"=>"r", "\xD0\xA0"=>"R",
"\xD1\x81"=>"s", "\xD0\xA1"=>"S",
"\xD1\x82"=>"t", "\xD0\xA2"=>"T",
"\xD1\x83"=>"u", "\xD0\xA3"=>"U",
"\xD1\x84"=>"f", "\xD0\xA4"=>"F",
"\xD1\x85"=>"x", "\xD0\xA5"=>"X",
"\xD1\x86"=>"cz", "\xD0\xA6"=>"CZ",
"\xD1\x87"=>"ch", "\xD0\xA7"=>"CH",
"\xD1\x88"=>"sh", "\xD0\xA8"=>"SH",
"\xD1\x89"=>"shh", "\xD0\xA9"=>"SHH",
"\xD1\x8A"=>"", "\xD0\xAA"=>"",
"\xD1\x8B"=>"y", "\xD0\xAB"=>"Y",
"\xD1\x8C"=>"", "\xD0\xAC"=>"",
"\xD1\x8D"=>"e", "\xD0\xAD"=>"E",
"\xD1\x8E"=>"yu", "\xD0\xAE"=>"YU",
"\xD1\x8F"=>"ya", "\xD0\xAF"=>"YA",

Before: yousite.com/1/это-вопрос

After: yousite.com/1/eto-vopros

by
The modification affects urls generation only if the option 'Remove accents from question URLs' in Admin => Viewing is enabled.
by
+1
not working for tags

1 Answer

+4 votes
by
Not work fo tag and category.
by
–1
Category and tags - this is not the site content. So - they are not interesting and should be closed by robots.txt.
by
+1
Closing in robots.txt does not solve the problem of appearance.
by
Really for 10 years and there was no solution?
...