• Hello,

    i like to change from WMPL to Polylang, but i have a problem.

    My Sites are like:
    domain.com/post1.html
    domain.com/en/post1.html

    Menue like:
    Menue DE
    – Sub1
    – article for sub1
    =domain.com/subpost5.html
    =domain.com/en/subpost5.html

    Polylang makes now with my customed permalinkstructur:
    domain.com/sub1/subpost5
    instead of domain.com/subpost5.html

    With all languages, also with the main lang. (german)

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Chouby

    (@chouby)

    I am sorry but I don’t understand.
    What is sub1?
    What is your permalink setting?
    What are your Polylang settings?

    Thread Starter thommy1499

    (@thommy1499)

    Menu first level.
    Sub=Submenu – second level.
    article for sub1= a article, posted and published in the Submenu

    Permalink setting
    /%postname%/

    Polylang settings:
    Only: no change on urls active
    and domain/en instead of domain/language/en

    rest deactivated.

    Plugin Author Chouby

    (@chouby)

    I still don’t understand what is sub1. We can publish posts in categories but not in a submenu. In any case, the url should not depend on the position of the link in the menu..

    I dont’ believe that this sub1 is added by Polylang. Could you try to make tests with a default theme such as twenty twelve and no other plugins activated?

    There are some inconsistent things. If the structure is /%postname%/ you can’t get domain.com/postname.html but only domain.com/postname/.

    Moreover, if you come from WPML and want to keep the same permalinks, I believe that you need to check the Polylang options:
    * The language code, for example /en/, is added to all urls when using pretty permalinks.
    * Hide URL language information for default language

    Also a link would help to better understand your problem.

    Thread Starter thommy1499

    (@thommy1499)

    U have a menu.
    Under this menu u have link to sites and some submenu.
    This Submenu has post/sites under it….a submenu

    I dont sayed, that the sub1 is added by Polylang, i only liked to show u the structure of my site, nothing else.

    Of course i can get domain.com/postname.html if i work with plugins like
    Permalink Editor or something similar, but Polylang completly ignore this custome permalinks, and thats the reason why i post here.

    Plugin Author Chouby

    (@chouby)

    Menus structure and permalinks structure are two different and independant things. That’s why I misunderstand why you referring to your menu structure when your problem seems to be in permalinks.

    I am totally lost now. You wrote above that your permalinks structure is /%postname%/ and now you are writing that you use a plugin to create a custom permalink structure to obtain something else.

    I will explain how Polylang works:
    * If the language is set from content, it does not modify the posts, pages, categories and post tags urls and does add the language code to all archives.
    * If the language code is added to all urls, then Polylang does only this (this is the “WPML like” option).

    Now a conflict is always possible if another plugin also modifies the url in a non expected way.

    I guess such a plugin is not useful. To obtain the
    domain.com/german-post.html
    domain.com/en/english-post.html

    Your permalink structure:
    /%postname%.html

    Your Polylang settings:
    * The language code, for example /en/, is added to all urls when using pretty permalinks.
    * Hide URL language information for default language

    Please do the tests without any other plugin activated and with a default theme to see if you obtain waht you expect

    Thread Starter thommy1499

    (@thommy1499)

    I wrote my menu structure for better understanding, not for misunderstanding – sorry 🙂

    Theme for testing is Twenty Thirteen, WP 3.6.

    Yeah, i use a custome permalink structure to bring stuff outside, that i dont like/need, example (your Plugin is now active and “my” permalinks plugin deactive and in the permalink-structure your: /%postname%.html)

    http://www.varkala-holiday.com – English part
    “About India” -> Bollywood
    url:domain.com/about-india/bollywood
    “correct” url has to be: domain.com/en/bollywood.html

    And u see at:
    http://www.varkala-holiday.com/about-india/bollywood
    a “correct” internal link like:
    http://www.varkala-holiday.com/en/india-asia.html

    Plugin Author Chouby

    (@chouby)

    As suggested above, did you check the option:
    “The language code, for example /en/, is added to all urls when using pretty permalinks”
    in Polylang settings?

    Thread Starter thommy1499

    (@thommy1499)

    I test different option, all the same effect.

    http://s7.directupload.net/file/d/3338/flwsxblh_jpg.htm

    Plugin Author Chouby

    (@chouby)

    Polylang does not seem to be active on the links you gave above.

    However the link http://www.varkala-holiday.com/en/india-asia.html does work which make me think that either you have a directory or a page called ‘en’. This will conflict with Polylang.

    Finally, the settings you posted above are not correct if you want the “WPML like” url. You must check:
    “Der Sprachenkode. z. B. /de/, wird alles URLs beigefügt falls schöne Permalinks benutzt werden”

    Thread Starter thommy1499

    (@thommy1499)

    Its correct, at the moment not active, because it would destroy all my links till my problem is solved – would be not really good for Google.

    Its a must, that i have/get my original links, its seems like, that its not possible with your Plugin.

    Anyway thx for your try to help.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Polylang ignore my permalinks structur’ is closed to new replies.