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

الوسوم: 

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

آخر تحديث بواسطة tomaszK-48 قبل 9 أشهر، 1 أسبوع.

يساعده: Dražen.

الكاتب المشاركات
ديسمبر 18, 2024 في 12:35 م #16525678

tomaszK-48

Background of the issue:
I suspect WPML is making changes to the htaccess file that are causing the site to crash. The problem started to occur after the Elementor update, but I cannot say with certainty that this is the clear cause. The nature of the problem and the changes I am noticing in htaccess suggest to me that it could be a WPML action triggered by some action/click. The site I need help with is الرابط المخفي. Here is the htaccess configuration before and after the change:

correct (good working):

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

after change:

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

Symptoms:
All subpages except the main one are returning a server 404 error.

Questions:
Is WPML responsible for the changes in the htaccess file?
How can I resolve the 404 error on subpages after the Elementor update?