Rewrite rules issues with Polylang Pro
-
Hello there,
First of all, thank you for your great plugin.
I have a weird issue on a WordPress website (Multisite). Occasionally, pages that should be using a custom template or a WP template (like archive.php) starts using index.php instead. I have to go into the permalinks settings and simply save them (without even changing them). The problem comes back randomly but quickly enough (a few hours)…
Here is the structure of my multisite:
Main site (4 languages):
FR: https://example.com/
NL: /nl/
EN: /en/
DE: /de/Site 2 (4 languages):
FR: https://site2.example.com/
NL: /nl/
EN: /en/
DE: /de/Site 3 (1 language):
FR: https://site3.example.com/I’m using Polylang Pro for multilingual.
I have installed the “Query Monitor” plugin. When the problem appears on the news listing for example (/actualites), I notice by analyzing the queries that WP is looking for the language “news” instead of the page “news”:?https://snipboard.io/UBPbwj.jpg
I’ve installed the “Rewrite rules inspector” plugin and, when the bug appears, I’ve noticed this rewrite which causes the bug:
([^/]+)/?$ => index.php?lang=$matches[1]
I’ve achieved to reproduce the bug: when I go to Polylang Pro settings and just save them (without changing anything), the issue appears (so the bad rewrite rule appears). If I go to the permalinks settings and simply save them (without even changing them), the issue disappears.
But if I try to reproduce the issue with “Awesome Support” disabled, the issue never came back! So the source of the issue is your plugin :s
Thanks in advance,
Ced
- The topic ‘Rewrite rules issues with Polylang Pro’ is closed to new replies.