Good day, for the last 3 weeks I experienced suddenly that WPML overwrites the htaccess. My server host support told me this: The error is caused by a plugin that modifies the entries in the .htaccess file. I have now reset these entries back to our standard configuration.
Due to this modification, a conflict occurs in the rewrite rules. It is defined that WordPress is installed in a subdirectory /en/, which is not the case.
This configuration is incorrect, as WordPress generates the language URLs itself and does not require a rewrite to /en/.
You therefore need to check which plugin was updated or had its settings changed during the period when the error started to occur.
The website freeze occurs so far only when I worked with WPLM. What can I do?
Here’s a quick summary of what we discussed and what you should do next regarding the .htaccess issue.
Summary
Your host found incorrect rewrite rules in your .htaccess file, suggesting WordPress was inside an /en/ folder. This caused conflicts and site freezes, particularly while you were working in WPML.
The WPML setting “Use directory for default language” is currently disabled, which is correct, but we don’t know whether it was ever enabled previously.
Complianz is officially compatible with WPML, and there is no clear indication that it is related to the rewrite issue.
Next Steps
1. Re-save permalinks
Go to Settings → Permalinks → Save Changes to regenerate a clean .htaccess file.
2. Check whether the incorrect line returns.
Ask your host to confirm whether or not this line appears again: