ข้ามไปยังเนื้อหาหลัก ข้ามไปยังแถบด้านข้าง
Sun Mon Tue Wed Thu Fri Sat
- 11:00 – 15:00 11:00 – 15:00 11:00 – 15:00 11:00 – 15:00 11:00 – 15:00 -
- 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 -

เขตเวลาของผู้สนับสนุน: Europe/Rome (GMT+02:00)

ติดป้ายกำกับ: 

หัวข้อนี้ประกอบด้วย 0 ข้อความตอบกลับ, มี 1เสียง -.

ปรับปรุงล่าสุดโดย tosconovaS 3 months, 4 weeks มาแล้ว -.

ช่วยเหลือโดย: Laura -.

ผู้เขียน โพสต์
เมษายน 28, 2025 เวลา 7:57 am #16973464

tosconovaS

Contesto del problema:
A volte quando aggiorniamo WPML o si fanno modifiche nel modulo il file htaccess del sito tosconova.com viene modificato, tale modifica genera errore 500 server.
Abbiamo il sito in tre lingue: italiano, inglese e russo (di cui l'Italiano è la lingua principale).

Questo è il codice non funzionante che ogni tanto viene generato:

RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /it/
RewriteRule ^index.php$ - [L]
RewriteRule ^en/wp-login.php /it/wp-login.php [QSA,L]
RewriteRule ^it/wp-login.php /it/wp-login.php [QSA,L]
RewriteRule ^ru/wp-login.php /it/wp-login.php [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /it/index.php [L]

Questo è invece il codice originale e funzionante:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

Grazie mille,
Saluti

Sintomi:
Il file htaccess viene modificato in seguito ad aggiornamenti o modifiche al plugin WPML, causando un errore 500 server.

Domande:
Perché il file htaccess viene modificato dopo l'aggiornamento o le modifiche al plugin WPML?
Come posso evitare che il file htaccess venga modificato automaticamente?

หัวข้อ “[ปิด] Bug modifica file htaccess sito web in seguito a modifiche o aggiornamenti plug-in WPML” ถูกปิดสำหรับการตอบกลับใหม่.