Skip Navigation

This topic contains 0 replies, has 0 voices.

Last updated by tomaszK-48 6 days, 13 hours ago.

Assisted by: Dražen.

Author Posts
December 18, 2024 at 12:35 pm #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 hidden link. 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?