تخطي إلى المحتوى تخطي إلى الشريط الجانبي

الوسوم: 

يحتوي هذا الموضوع 0 ردود ، لديه 1صوت.

آخر تحديث بواسطة samD-19 قبل 10 أشهر، أسبوعين.

يساعده: Shekhar Bhandari.

الكاتب المشاركات
سبتمبر 23, 2024 في 7:55 ص #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?