Possible .htaccess corruption when creating a new translation
-
Hello,
we are experiencing an intermittent but serious issue on a WordPress site using Polylang. About once or twice a week, when creating a new translation of a product (e.g. duplicating into Dutch), the site suddenly breaks with HTTP 500.
From our logs, the last request before the error is always an
admin-ajax.phpcall triggered from the post editor when adding a new translation (example below). At exactly that moment, the.htaccessfile in the web root becomes truncated — usually only the first part of the file is saved, the rest is missing. This makes the file invalid and the server returns a 500 error until we restore it.Example log entry:
[29/Sep/2025:17:23:19 +0200] "POST /wp-admin/admin-ajax.php HTTP/1.1" 200 ... Referer: /wp-admin/post-new.php?post_type=produkt&from_post=42777&new_lang=nlIt looks like Polylang may be rewriting
.htaccessduring this process. If the request is interrupted (timeout, memory issue, or concurrency),.htaccessends up incomplete.Could you please confirm if Polylang writes to
.htaccess, and whether there is a way to disable or safeguard this behavior?Thank you!
You must be logged in to reply to this topic.