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.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.