Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 10:00 8:00 – 10:00 8:00 – 13:00 8:00 – 13:00 9:00 – 13:00 -
- 11:00 – 17:00 11:00 – 17:00 14:00 – 17:00 13:00 – 17:00 13:00 – 18:00 -

Supporter timezone: America/New_York (GMT-05:00)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Lauren 2 months, 3 weeks ago.

Assisted by: Lauren.

Author Posts
October 2, 2024 at 1:04 pm #16245712

Rene

Background of the issue:
I am trying to: The website shows a 403 error when switching languages or going to a different page. The home page always loads perfectly. After refreshing the permalinks, the website functions normally for a week. After a week, the website again shows a 403 error. These are the .htaccess files before and after refreshing the permalinks, along with the dates: 10-9-24 Before refreshing permalinks # BEGIN WordPress # The directives (rules) between "BEGIN WordPress" and "END WordPress" are # dynamically generated and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten. RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase /en/ RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /en/index.php [L] # END WordPress After refreshing permalinks # BEGIN WordPress # The directives (rules) between "BEGIN WordPress" and "END WordPress" are # dynamically generated and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten. RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPress 13-9-24 Before refreshing permalinks # BEGIN WordPress # The directives (rules) between "BEGIN WordPress" and "END WordPress" are # dynamically generated and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten. RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase /en/ RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /en/index.php [L] # END WordPress After refreshing permalinks # BEGIN WordPress # The directives (rules) between "BEGIN WordPress" and "END WordPress" are # dynamically generated and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten. RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPress 2-10-24 Before refreshing permalinks # BEGIN WordPress # The directives (rules) between "BEGIN WordPress" and "END WordPress" are # dynamically generated and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten. RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase /en/ RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /en/index.php [L] # END WordPress After refreshing permalinks # BEGIN WordPress # The directives (rules) between "BEGIN WordPress" and "END WordPress" are # dynamically generated and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten. RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPress Link to a page where the issue can be seen: hidden link

Symptoms:
The website shows a 403 error when switching languages or going to a different page. The home page always loads perfectly. After refreshing the permalinks, the website functions normally for a week. After a week, the website again shows a 403 error.

Questions:
Why does the website show a 403 error when switching languages or going to a different page?
Why does the website function normally for a week after refreshing permalinks but then show a 403 error again?

October 2, 2024 at 2:07 pm #16246153

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

Please set up a staging site with minimal settings (only WPML plugins active with a default theme) and once that is ready and the issue has come back, let me know and we will further troubleshoot.

If the issue does not come back, try activating plugins a few at a time until it does, and then we can begin to isolate if there is a conflict happening.

The topic ‘[Closed] 404 error’ is closed to new replies.