跳转至内容 跳转至侧边栏
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, 3 weeks前 更新。

协助者:: Laura.

作者 帖子
28 4 月, 2025 于 7:57 上午 #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” 已关闭,不接受新回复。