Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 -
- 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 -

Supporter timezone: Europe/Athens (GMT+03:00)

This topic contains 5 replies, has 2 voices.

Last updated by Andreas 1 year, 2 months ago.

Assisted by: Andreas.

Author Posts
February 8, 2023 at 11:58 am #12987089

grahamH-4

We have been suffering on our site with errors saying "resources.ldra.com redirected you too many times."
Our technical support have seen the .htaccess is being rewritten by WMPL and it is causing these errors.

When we install a new .htaccess about every 5/7 days WPML will update the .htaccess and this error comes back again.

This is causing real problems with the site as it means we have to stop promoting it and can't rely on the WPML plugin.

unnamed2.jpg
February 8, 2023 at 12:23 pm #12987331

Andreas

Hello there

Thank you for contacting us. I am happy to help you.

May I ask you to share your .htaccess in order to see what are the wrong entries coming from WPML.

Also Can you please confirm what is the structure of your language?

I can see 2 languages en and en-us , but in your site, I cannot see any language switcher.

So please explain me your setup

Thank you very much

Regards,
Andreas

February 15, 2023 at 10:10 am #13038207

grahamH-4

The problem seems to be a random redirect that is being created by WPML
If you look at the following trace of trying to load the homepage back 10th Feb you can see the problem.
hidden link

It attempts to load the homepage, redirects to hidden link and then backward and forwards between the two URLs.

I have got the previous .htaccess file and the current one which my tech support replaced it with to try to stop the problem.
Original
hidden link
Replacement
hidden link

What is particularly weird is the problem appears and disappears.

Our site uses GEOIP look-up for the translation so there is no flag switch available.

This solution has been working reliably for the last three years but seems to have started back in November 2022, since which we have had regular problems with it.
According to the WPML log file, there does seem to have been releases around that time (Oct & Noc) but nothing since. That may be something to do with it.
https://wpml.org/category/changelog/

Any helps as if we can't fix this then we will have to stop using WPML.
Thanks

Graham

February 15, 2023 at 11:28 am #13039449

Andreas

Thank you very much for your reply.

May I ask you to check this and tell me if this can help you ?

https://wpml.org/errata/htaccess-is-rewritten-with-language-folder/

Looking forward to your reply.

Regards,
Andreas

February 17, 2023 at 8:12 am #13055067

grahamH-4

We are trying the solution suggested in your link provided on a staging server.
Will update this thread once we have tested it.
Thank you

February 17, 2023 at 9:10 am #13055569

Andreas

Thank you very much.

Leave me a comment when you have news.

Regards,
Andreas

The topic ‘[Closed] We keep getting redirected you too many times.’ is closed to new replies.