Polylang ignore my permalinks structur
-
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.htmlMenue like:
Menue DE
– Sub1
– article for sub1
=domain.com/subpost5.html
=domain.com/en/subpost5.htmlPolylang makes now with my customed permalinkstructur:
domain.com/sub1/subpost5
instead of domain.com/subpost5.htmlWith all languages, also with the main lang. (german)
-
I am sorry but I don’t understand.
What is sub1?
What is your permalink setting?
What are your Polylang settings?Menu first level.
Sub=Submenu – second level.
article for sub1= a article, posted and published in the SubmenuPermalink setting
/%postname%/Polylang settings:
Only: no change on urls active
and domain/en instead of domain/language/enrest deactivated.
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 languageAlso a link would help to better understand your problem.
U have a menu.
Under this menu u have link to sites and some submenu.
This Submenu has post/sites under it….a submenuI 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.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.htmlYour permalink structure:
/%postname%.htmlYour Polylang settings:
* The language code, for example /en/, is added to all urls when using pretty permalinks.
* Hide URL language information for default languagePlease do the tests without any other plugin activated and with a default theme to see if you obtain waht you expect
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.htmlAnd u see at:
http://www.varkala-holiday.com/about-india/bollywood
a “correct” internal link like:
http://www.varkala-holiday.com/en/india-asia.htmlAs 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?I test different option, all the same effect.
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”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.
The topic ‘Polylang ignore my permalinks structur’ is closed to new replies.