On a regular basis, the sub pages on this site return a 500 error.
Investigation shows that the rewrite rules in .htaccess have been changed and the site is looking for content in /es/. But /es/ doesn't exist.
Changing the rules in .htaccess (see attached) or resaving the permalinks fixes the issue immediately. But it keeps reoccurring and the client is losing faith.
It appears to be WPML related because it is the rewrite rules relating to languages that are being changed.
Thank you for contacting WPML Support, I will be happy to help you today.
This this issue actually comes from certain third-party plugins calling flush_rewrite_rules(true) function too often. This causes WordPress to overwrite .htaccess.
The topic ‘[Closed] htaccess rules being rewritten’ 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.