Skip navigation

Помечено: 

Эта тема содержит 0 ответов, имеет 0 голоса.

Последнее обновление: tomaszK-48 6 дней назад.

При содействии: 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?