(2013-02-07, 21:13:26)AlexStarnavsky Wrote: I found a problem with this plugin:
The second and subsequent generated pages are not included in the sitemap (sitemap.xml), as well as for them does not change the value of link rel = "canonical"
Ie, for example, the page
Code:http://somedomain.com/info/example;2
is as follows:
Code:<link rel="canonical" href="http://somedomain.com/info/example" />
But it's a different page!
For this reason, I think, a site can be indexed not properly by search engines.
Is there a solution to this problem?
Edit the frontend.class.php file of the I18N Base plugin. Replace the following line:
Code:
if (!$omit || !in_array('canonical',$omit)) echo '<link rel="canonical"....
Code:
if (!$omit || !in_array('canonical',$omit)) echo '<link rel="canonical" href="'.find_i18n_url($url,$parent,$language). ((isset($_GET["page"]) && @$_GET["page"] != '1') ? rtrim("?page=" . $_GET["page"], '/') : "") . '" />'."\n";
That works for me.
# Don't forget to replace the get_header() function in your theme with get_i18n_header()