Polylang changes urls: how to avoid/disable automatic redirect?
-
Hi. My situation is quite particular. I’m only using wordpress backoffice and core functions but no themes. WordPress is installed in a subdir “wp”. I load wordpress in custom non-wordpress single php pages in other dirs, like this:
https://www.mydomain.com/it/page.php
What happens is that polylang automatically redirects to
https://www.mydomain.com/wp/?lang=it
So, what I need is:
– use polylag in backoffice to make translations. This already works fine.
– have polylang do nothing in frontend: I’ll manually query translations by myself.
How can I do it?
Thank you, regards.
P.s.
I’m using standard permalinks (in fact, don’t need them and don’t even have a .htaccess):
https://www.mydomain.com/wp/?p=123
- The topic ‘Polylang changes urls: how to avoid/disable automatic redirect?’ is closed to new replies.