We know it's a WPML-related problem, because I've read from several places that WPML is the cause and because what causes the problem is the change in the .htaccess file to the WPML RewriteRules. When this happens all pages, except the home page, give an error.
Upon investigation we saw that the problem is that WPML overwrites the correct .htaccess (listed first below) with one that has the wrong paths (listed second below).
It was not possible to understand if there is interference with other plugins, because it is a problem that occurs every now and then, without continuity and without apparent causes.
Thank you for contacting WPML Support, I will gladly help you.
It might not be related to your issue, but from the debug info you provided, I noticed that you are using WordPress v6.2.4, I would suggest you update to the latest version
---
The issue you are facing is not caused by WPML, it comes from certain third-party plugins calling flush_rewrite_rules(true) function too often. This causes WordPress to overwrite .htaccess.
After that try re-saving the permalinks and see if the issue still happens.
* Note: Please make sure you have a full backup of your website before making any updates/changes on your website.
Let me know how it goes.
Kind regards,
Marsel
The topic ‘[Closed] Wrong Htaccess RewriteRule’ is closed to new replies.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.