דלג על ניווט

נושא זה מכיל 0 תגובות, יש ל 0קולות.

עודכן לאחרונה על ידי tomaszK-48 לפני חודש 1, 2 שבועות.

בסיוע: Dražen.

מחבר פוסטים
דצמבר 18, 2024בְּ- 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 קישור נסתר. 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?