WordPress.org

Ready to get started?Download WordPress

Forums

Polylang
Canonical URLs for main pages dont work (13 posts)

  1. Baz11
    Member
    Posted 1 year ago #

    For main pages in different languages (non default) plugin set canonical URL of main page in default language. Pages site.com/en/, site.com/de/ and other have canonical URL- site.com. All this main pages will not indexes.
    How fix that?

    http://wordpress.org/extend/plugins/polylang/

  2. Baz11
    Member
    Posted 1 year ago #

    May be it is problem of SEO plugin- All in One Seo. But I think it is a very important question of compatibility

  3. Chouby
    Member
    Plugin Author

    Posted 1 year ago #

    Probably a conflict yes. As far as I know, the WordPress core does not set a canonical url for the homepage. And so Polylang keeps it as is and does not set a canonical url for the homepages in different languages. I don't use any SEO plugin and all my pages are indexed.

  4. Baz11
    Member
    Posted 1 year ago #

    When there are no Canonicals - there is no problem. All pages will indexes. But when Canonical urls is setting with any Seo plugin, main pages in other languages ​​will refer to main page in default language and will not indexes.

  5. Chouby
    Member
    Plugin Author

    Posted 1 year ago #

    I made a test and confirm. You can easily suppress the issue by unchecking the Canonical URLs option in All in One SEO settings.

  6. Baz11
    Member
    Posted 1 year ago #

    Hm... Without canonical URLs there will be many duplications pages (specific of WordPress). It will be a very big problem for any blog. I would not advise anyone to turn off canonicals.

  7. Baz11
    Member
    Posted 1 year ago #

    I hope You will find another solution to this important issue.

  8. Chouby
    Member
    Plugin Author

    Posted 1 year ago #

    But, as far as I know, WordPress does set a canonical url for all pages, except on homepage.

  9. Baz11
    Member
    Posted 1 year ago #

    Hm... I use WordPress 3.4.0. I will test it and will write it result.

  10. Baz11
    Member
    Posted 1 year ago #

    When unchecked the Canonical URLs option in SEO plugin settings - WordPress adds canonical URLs for all posts and pages except the homepage.
    It works.
    Tell me please: homepage may be without canonical? It will be no any duplications?

  11. Chouby
    Member
    Plugin Author

    Posted 1 year ago #

    But, as far as I know, WordPress does set a canonical url for all pages, except on homepage

    I am wrong. There is no canonical url for archives.

    I further investigated and noticed that All in One SEO is supporting WPML for canonical urls. I made a slight modification so that it should work with Polylang too.

    You can test it in the development version.
    http://downloads.wordpress.org/plugin/polylang.zip

  12. Baz11
    Member
    Posted 1 year ago #

    Yes, it works in new version. Thanks a lot :!)
    But when I deactivated plugin for upgrade and activated new version - all settings and translations was broken...
    How to make right upgrade for new versions of plugin without it?

  13. Chouby
    Member
    Plugin Author

    Posted 1 year ago #

    If you automatically upgrade or manually upgrade by deleting the polylang directory and uploading the new version, you should loose nothing.

    But if you click on the red 'delete' link in the plugins list, then Polylang deletes all what you have done with it. All plugins should work like this.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.