HI Everyone,
I can't afford this upgrade so I found a "quick&dirty" solution for this bug. You do not need to edit anything but the template file 404.php (page not found) of your theme.
I put the following lines in the beginning of the file (after <?php) :
function curPageURL() {
$pageURL = 'http';
if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
$pageURL .= "://";
if ($_SERVER["SERVER_PORT"] != "80") {
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
} else {
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
}
return $pageURL;
}
$cur_url = curPageURL();
$repeats = array("/ru", "/it", "/es", "/de", "/fr");
foreach($repeats as $repeat){
if(strstr( $cur_url, $repeat.$repeat.'/' )){
$cur_url = str_replace($repeat.$repeat.'/', $repeat.'/', $cur_url);
header( 'Location: '.$cur_url ) ;
}
}
What is does is to remove the superfluous part from the URL and reload the correct URL. You should list all your additional language domains as values in $repeats (in my case, these are 5 languages).
I am sure there are more elegant solutions, but I am not a guru and this one at least works and does not let this "intentional bug" ruin your blog. Feel free to contact me if you need help adjusting this solution to your case.
Svetlana