• Hi All,

    I have a site that is in Spanish (default) and english. All is working well except the blog posts in English has an extra /en/ added to them. So when editing a post and pointing on “view post” or on the all posts list it will show the link as such:

    https://www.mexresorts.com/en/en/blog/mexican-vacation-packages

    Which will lead to a 404 page because the actual URL is:

    https://www.mexresorts.com/en/blog/mexican-vacation-packages

    Whish loads. On all normal pages in English the URL’s are fine. Anything that automatically displays posts will show the /en/en/ version of the URL like on the main page in the bottom: https://www.mexresorts.com/en/

    I have the settings as follows:

    SELECTED The language is set from the directory name in pretty permalinks
    CHECKED Hide URL language information for default language
    SELECTED Remove /language/ in pretty permalinks
    CHECKED The front page url contains the language code instead of the page name or page id

    Also I use the plugin “Enhanced Custom Permalinks” in order to be able to have longer slugs. The default one does not allow enough sub directories.

    I hope someone can help or point me in the right direction!

    Thank you!!

    https://www.ads-software.com/plugins/polylang/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Chrystl

    (@chrystl)

    Hi

    Does it work with Enhanced Custom Permalinks *deactivate*?

    Thread Starter Michael_Bach

    (@michael_bach)

    Hi,

    I have not tried because it is a live site and I don’t want to risk losing ranking in Google. I have to make it work because we have pages with very good ranking and I would prefer not to change the URL of them. Our main english site is /en/ is it possible that this confuses permalinks and polylan?

    Plugin Author Chouby

    (@chouby)

    Hi!

    It’s possible that there is a conflict as both plugins are modifying permalinks.

    Our main english site is /en/ is it possible that this confuses permalinks and polylan?

    Could you clarify what do you mean?

    Thread Starter Michael_Bach

    (@michael_bach)

    Hi,

    Our English mainpage is https://www.mexresorts.com/en/

    And in Polylang the English language code is set to en. So in the settings it says “The language is set from the directory name in pretty permalinks
    Example: https://www.mexresorts.com/en/my-post/”

    So since I manually set the English main page to /en/ with pretty permalinks maybe there is some sort of conflict between Polylang and permalinks?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Permalinks for Blog posts’ is closed to new replies.