Pular para o conteúdo Pular para a barra lateral

Este tópico contém 0, tem 1 voz.

Última atualização: samD-19 10 meses atrás.

Assistido por: Shekhar Bhandari.

Autor Postagens
setembro 23, 2024 às 7:55 am #16207643

samD-19

Background of the issue:
Our .htaccess file is by time to time overwritten by the WPML plugin (don't know when or why) which causes an endless loop in our website and a 503 Backend Fetch Failed error. This is how a standard .htaccess file should look:
# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

This is the example of the .htaccess file when we get the error:
# BEGIN WordPress

RewriteEngine On
RewriteBase /nl/
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /nl//index.php [L]

# END WordPress

Adding /nl/ by the WPML is causing this issue i think.

Symptoms:
503 Backend Fetch Failed error

Questions:
Is there a solution to prevent this from happening?