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?
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.