Hi, I’ve seen this happen on another site and there too Polylang is active. I’ve tried to reproduce the issue but cannot.
Could you tell me the exact settings in Polylang and the news sitemap that you are using? And what other plugins are active?
Also, could you tell me your exact Permalink settings? And maybe re-save them (without changing them) to see if that fixes it…
Thread Starter
oundir
(@oundir)
Hi @ravanh Thanks for your answer.
My permalinks are like this:
/% category% /% postname% /
I have saved them again and still not fixed.
The news sitemaps I am using is XML Sitemap & Google News.
Regarding Polylang in URL I have this configuration:
The language is set by the name of the directory in the custom permanent links
Example: https://hablamosdegamers.com/en/my-post/
Detect browser language
disabled
Custom content types and taxonomies
disabled
Custom content types and taxonomies
Disabled, no option chosen.
Thanks, I tried with these settings but still cannot reproduce this redirect. Do you have other plugins active?
Could you try resaving the Polylang settings? I’ve read that that can solve unexpected redirects.
Also try disabling and re-enabling the xml and news sitemaps on Settings > Reading…
Thread Starter
oundir
(@oundir)
Hi @ravanh Still dont work…
Do you have other plugins active?
Thread Starter
oundir
(@oundir)
Yes @ravanh
My plugins are:
Amazon Affiliate for WordPress
Easy Table of Contents
Elementor
Duplicate Post
GP Premium
Inline Related Posts
Loco Translate
Polylang
ProfileGrid (Desactivated)
Jetpack by WordPress.com
Really Simple SSL
Redirection
Schema
Schema – All In One Schema Rich Snippets
WP Rocket
Yoast SEO
Hard to say if any of them could cause this redirect by Polylang…
Any chance you could temporarily put your site in maintenance mode (there are some good plugins that can do that for you) and switch off Polylang? Then clear the WP Rocket cache and quickly check if the redirect disappeared (or not). Then reactivate Polylang and switch off maintenance mode, of course 🙂
I appreciate your help in debugging very much as it appears you are not the only one that encountered this weird redirect!